• Home
  • Docker
  • Kubernetes
  • LLMs
  • Java
  • Ubuntu
  • Maven
  • Big Data
  • Archived
Design Patterns | Mediator
  1. References
  2. Example
    • The Subject (1)
    • The Subject (2)
    • The Mediator
    • The Concrete Mediator
    • A simple class to test the Mediator design pattern

  1. References
    • Definition: (source: http://en.wikipedia.org/wiki/Mediator_pattern)

      The Mediator pattern defines an object that encapsulates how a set of objects interact.

    • Class diagram: (source: http://en.wikipedia.org/wiki/Mediator_pattern)

      Mediator Pattern
  2. Example
    • The Subject (1):


    • The Subject (2):


    • The Mediator:


    • The Concrete Mediator:


    • A simple class to test the Mediator design pattern:


© 2025  mtitek