Origin: | GoF 95 | |||||||||
Reason: | Access a set of related objects through a single object or interface. | |||||||||
Synopsis: | Define a class, the Facade, that accesses a set of related objects. Allow clients to access the set of related objects only through the Facade. | |||||||||
Example: | Mail messages have components such as Body, Header, Sender, etc. Define a class MessageCreator that deals with the above components. Clients that create mail messages interact with MessageCreator only. | |||||||||
Solution: |
|
|||||||||
See also: |
Interface Proxy Adapter |