- 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.
推薦閱讀
- OpenShift開發(fā)指南(原書第2版)
- 編程卓越之道(卷3):軟件工程化
- Practical Data Science Cookbook(Second Edition)
- BeagleBone Media Center
- Building a Recommendation Engine with Scala
- Deep Learning with R Cookbook
- Java程序設(shè)計(jì)教程
- IBM DB2 9.7 Advanced Application Developer Cookbook
- 深入理解Zabbix監(jiān)控系統(tǒng)
- Learning PrimeFaces Extensions Development
- Testing Practitioner Handbook
- 中小企業(yè)網(wǎng)站建設(shè)與管理(靜態(tài)篇)
- Hands-On GUI Application Development in Go
- Oracle 11g寶典
- Kotlin核心編程