Mediator Pattern

Overview

Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.

Participants

Mediator

ConcreteMediator

Colleague classes

Abstract Colleague

Parameters

Notification method

Create Pattern Links

Applicability

Use the Mediator pattern when