Visitar URL original
java-design-pattern/wiki/Mediator.md at master · mquan86/java-design-pattern · GitHub
Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 467 Bytes

Mediator.md

File metadata and controls

11 lines (7 loc) · 467 Bytes

Mediator

Pattern

To encapsulate the set of object's interactions. Every object will not communicate directly, all communicate through mediator.

Example

You application has a toolbar with save, undo, redo button. Each button when pressed will active or deactive other buttons.