Work on #226, #213, added references of Gang Of Four to all GoF patterns, added tag for Gang Of Four, added difficulty tags to some of them

This commit is contained in:
Narendra Pathai
2015-09-22 18:25:56 +05:30
parent dd0fcea090
commit b3e4e8a47b
23 changed files with 168 additions and 22 deletions

View File

@ -4,7 +4,10 @@ title: Mediator
folder: mediator
permalink: /patterns/mediator/
categories: Behavioral
tags: Java
tags:
- Java
- Gang Of Four
- Difficulty-Intermediate
---
**Intent:** Define an object that encapsulates how a set of objects interact.
@ -18,3 +21,7 @@ other explicitly, and it lets you vary their interaction independently.
* a set of objects communicate in well-defined but complex ways. The resulting interdependencies are unstructured and difficult to understand
* reusing an object is difficult because it refers to and communicates with many other objects
* a behavior that's distributed between several classes should be customizable without a lot of subclassing
**Credits**
* [Design Patterns: Elements of Reusable Object-Oriented Software](http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612)