The mediator pattern promotes looser coupling between the classes by being the only class that has detailed knowledge of the methods of other classes. Classes send messages to the mediator when needed and the mediator passes them on to any other classes that need to be informed.
Real-world example
1) In Complex GUI where you enable/disable Controls based on user action.
Friday, May 11, 2007
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment