官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 天津市| 平阴县| 黔江区| 青海省| 泰来县| 金山区| 甘孜| 新龙县| 尉氏县| 河津市| 泽普县| 汶川县| 仪征市| 喀什市| 灵川县| 额尔古纳市| 武隆县| 平和县| 石景山区| 西乌珠穆沁旗| 浏阳市| 仁怀市| 玉田县| 唐山市| 建平县| 汕尾市| 措美县| 阳高县| 库车县| 会东县| 双桥区| 天峨县| 鞍山市| 鄂尔多斯市| 大同县| 新竹市| 石河子市| 尖扎县| 扶沟县| 博客| 甘肃省|