Mediator Design Pattern (UML Diagrams)
The Mediator is a behavioral design pattern. It describes interactions between objects. The use of a mediator solves the problem of the complexity of communication. The objects communicate through the mediator object instead of each other.
Design Pattern Parts
The mediator design pattern defines the following roles:
- Concrete Mediator
- Concrete Colleague
Mediator Pattern in Diagrams
The mediator pattern structure and behavior described using UML class and sequence diagrams.
Mediator Design Pattern (UML Class and Sequence Diagrams)