Chapter 4 ¶
Structural Patterns ¶
Adapter(105) Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because of incompatible interfaces
Bridge(121) Decouple an abstraction from its implementation so that the two can vary independently
Composite(137) Compose objects into tree structrures to represent part-whole hierarchies. Composite lets clients treat individual objects and compositions of objects uniformly.
Decorator(161) Attach Additional responsibilities and behavior to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality.
Facade(179) Provide a unified interface to a set of interfaces in a subsystem. Facade defines a higher-level interface that makes the subsystem easier to use.
Flyweight(189) Use sharing to support large numbers of fine-grained objects efficiently.
Proxy(213) Provide a surrogate or placeholder for another object to control access to it.
Adapter(105) 는 다른 ì�¸í„°íŽ˜ì�´ìФì�˜ Clients들ì�´ 예ìƒ�í• ìˆ˜ 있는 형태오 í�´ëž˜ìФì�˜ ì�¸í„°íŽ˜ì�´ìŠ¤ë¥¼ 변형시킨다. 즉, Adapter는 ì–‘ë¦½í• ìˆ˜ 없는 다른 ìƒ�황ì�˜ ë‘�가지ì�˜ ì�¼ì�„ 수행하는 í�´ëž˜ìŠ¤ë¥¼ ìƒ�호간연결시키는 ì—í• ì�„ 한다.
Bridge(121)ì�€ ì �ìš©(implementation)ì�˜ ì¶”ìƒ�화를 통한 분리를 통하여 둘ì—�게 ë�…립성ì�„ 부여한다.
Composite(137)ì�€ ì „ì²´-부분ì�˜ 계층 나타내기위한 tree구조로 ê°� object를 구성시킨다. Composite는 client 들ì�´ 개별ì�˜ object와 object들ì�˜ ì¡°í•©ì�„ ì�¼ì •한 규칙으로 다룰수 있게 한다.
Decorator(161)ì�€ objectì—�게 ë�™ì �으로 임무와 í• ì�¼ì�„ 부여한다. Decorator는 기능ì�˜ 확장ì�„ 위한 함수ì—� 대하여 ìœ ì—°í•œ ì„ íƒ�ì�„ ì œê³µí•œë‹¤.
Facade(179)는 확장ë�œ 시스템ì—�서(하위, ìƒ�ì†�ë°›ì�€) interface들ì�˜ ì¡°í•©ì—� 대한 ì�¼ê´€ì �ì�¸ ì ‘ê·¼(interface)ì�„ ì œê³µí•œë‹¤. Facade는 확장 시스템(하위, ìƒ�ì†�ë°›ì�€)ì�„ 좀ë�” 사용하게 쉽ë�„ë¡� 높ì�€ 단계ì�˜ interface를 ì •ì�˜í•œë‹¤.
Flyweight(189)는 ë§Žì�€ 수ì�˜ 잘 만들어진 object들ì�˜ 효과ì �ì�¸ ê³µìœ ë¥¼ 가능케 한다.
Proxy(213)ì�€ 다른 objectì�˜ ì¡°ì •,관리(control)ì�„ 위한 대행ìž�, placeholer를 ì œê³µí•œë‹¤.









