Design Patterns: Mediator
- A Mediator is an object-behavioral design pattern.
- Use a Mediator when simple objects interact in complex ways
- The Mediator pattern consists of two types of objects: the Mediator and its Colleagues.
- All object-to-object communication is encapsulated in the Mediator.
- Mediators allow for greater reusability, and generally more elegant, readable code.