1 00:00:00,640 --> 00:00:06,220 The composer design pattern is a hierarchical pattern that is focused on three structures of Nayda. 2 00:00:07,250 --> 00:00:12,350 The goal for it is to have a structure that would enable you to treat all the components inside the 3 00:00:12,350 --> 00:00:17,930 structure, the scene to achieve this objects are composed in a three structure. 4 00:00:18,290 --> 00:00:20,810 Let me show you the diagram for the composite pattern. 5 00:00:22,020 --> 00:00:26,910 At the top level, we have the obstruction component with the method that should be implemented by the 6 00:00:26,910 --> 00:00:27,780 leaf objects. 7 00:00:28,540 --> 00:00:34,170 The composited, however, is a component that has children and has the requirements for dealing with 8 00:00:34,170 --> 00:00:34,680 the children. 9 00:00:35,970 --> 00:00:41,280 In the typical implementation of this pattern, the composite delegates the functionality to its children. 10 00:00:43,200 --> 00:00:48,480 The features of this pattern are the design is based on the three structure. 11 00:00:49,890 --> 00:00:55,530 The level will always be the component, which is the abstraction like we've seen in the diagram. 12 00:00:56,920 --> 00:00:59,620 Belief objects are the implementation of the component. 13 00:01:01,000 --> 00:01:05,050 The composite objects should have the same operations as the live objects new. 14 00:01:06,480 --> 00:01:12,810 The composer knows about the child objects, whereas the live objects do not therefore allow your client 15 00:01:12,810 --> 00:01:19,260 to use older individual objects and the compositions in the same way as a single object from the same 16 00:01:19,260 --> 00:01:19,800 instance. 17 00:01:21,610 --> 00:01:27,830 In the General Library, Java AWG component is an example of usage for the composited pattern. 18 00:01:28,810 --> 00:01:31,750 Let's see how this pattern can be implemented, Endako.