Mediator – Definition

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.

Gang of four (Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides)

Mediator – Struktur

Mediator – Code Beispiel

Die Code-Beispiele sind jeweils bei github zu finden.