- Spring 5 Design Patterns
- Dinesh Rajput
- 121字
- 2021-07-08 09:59:38
Common problems solved by the composite pattern
As a developer, it is more difficult to design an application so that the client can access your objects uniformly across the application, even if that object was a composition of objects or an individual object. This design pattern resolves difficulties and allows you to design objects in such a way that you can use that object as a composition of objects and a single individual object.
This pattern solves the challenges faced when creating hierarchical tree structures to provide clients with a uniform way to access and manipulate objects in the tree. The composite pattern is a good choice; it is less complex in this situation to treat primitives and composites as homogeneous.
推薦閱讀
- UI設計基礎培訓教程
- UML和模式應用(原書第3版)
- 零基礎搭建量化投資系統:以Python為工具
- 數據結構(Python語言描述)(第2版)
- Python王者歸來
- JavaScript前端開發與實例教程(微課視頻版)
- 微信公眾平臺開發:從零基礎到ThinkPHP5高性能框架實踐
- Creating Mobile Apps with jQuery Mobile(Second Edition)
- 軟件供應鏈安全:源代碼缺陷實例剖析
- PHP 7從零基礎到項目實戰
- Greenplum構建實時數據倉庫實踐
- Java高手是怎樣煉成的:原理、方法與實踐
- INSTANT LESS CSS Preprocessor How-to
- Qt 5.12實戰
- Mastering Python