The Mediator Pattern

archetype MediationObject-Oriented Design

Categories: software-engineeringorganizational-behavior

What It Brings

A mediator in dispute resolution is a neutral third party who facilitates communication between disputants who cannot or will not talk directly. The GoF Mediator pattern maps this onto object interactions: a mediator object centralizes communication between colleague objects, preventing direct coupling. The metaphor frames software architecture as conflict management.

Key structural parallels:

Where It Breaks

Expressions

Origin Story

The Mediator pattern in the GoF book cites GUI dialog boxes as the motivating example: widgets (buttons, text fields, checkboxes) need to interact, but direct coupling between them creates a maintenance nightmare. A dialog mediator centralizes the logic: when a checkbox changes, the mediator decides which text fields to enable. The dispute resolution metaphor entered because it captures the structural shape: a neutral party coordinating parties who shouldn’t talk directly. But the metaphor fits awkwardly — dialog widgets aren’t in conflict, and their “mediator” isn’t neutral. The pattern would be more accurately called “Coordinator” or “Hub,” but those names lack the evocative power of mediation’s interpersonal drama.

References

Related Mappings