Browse Java Design Patterns & Enterprise Application Architecture

Mediator Pattern

Use the Mediator pattern in Java when too many components coordinate directly and the collaboration rules need one explicit home.

Mediator is about collaboration control. It becomes useful when components are not individually too complex, but the network of interactions between them is.

In Java systems, this often shows up in:

  • UI coordination
  • workflow orchestration
  • multi-component validation or event routing
  • subsystems where every component starts knowing too much about every other component

Mediator helps by centralizing interaction rules. It becomes harmful when it centralizes everything and turns into a god object.

In this section

Revised on Thursday, April 23, 2026