摘要:Composite Definition Compose objects into tree structures to represent part-whole hierarchies. Composite lets clients treat individual objects and composition...
阅读全文
摘要:Definition Attach additional responsibilities to an object dynamically. Decorators provide a flexible alternative to subclassing for extending functionality. ...
阅读全文
摘要:Adapter Definition Convert the interface of a class into another interface clients expect. Adapter lets classes work together that couldn't otherwise because ...
阅读全文
摘要:Definition Provide a surrogate or placeholder for another object to control access to it. UML class diagram Participants ...
阅读全文
摘要:Definition Use sharing to support large numbers of fine-grained objects efficiently. UML class diagram Participants ...
阅读全文
摘要:Definition Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use. ...
阅读全文
摘要:Definition Encapsulate a request as an object, thereby letting you parameterize clients with different requests, queue or log requests, and support undoable o...
阅读全文
摘要:Definition Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified and updated automatically. ...
阅读全文
摘要:Definition Provide a way to access the elements of an aggregate object sequentially without exposing its underlying representation. UML class ...
阅读全文