- Design Patterns and Best Practices in Java
- Kamalmeet Singh Adrian Ianculescu LUCIAN PAUL TORJE
- 86字
- 2021-06-25 20:52:39
Implementation
The mediator pattern is based on two abstractions: Mediator and Colleague, as shown in the following class diagram:

The mediator pattern relies on the following classes:
- Mediator: This defines how the participants are interacting. The operations declared in this interface or abstract class are specific to each scenario.
- ConcreteMediator: This implements the operations declared by the mediator.
- Colleague: This is an abstract class or interface that defines how the participants that need mediating should interact.
- ConcreteColleague: These are the concrete classes implementing the Colleague interface.
推薦閱讀
- C++面向對象程序設計(第三版)
- 高手是如何做產品設計的(全2冊)
- AngularJS Testing Cookbook
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- Building Cross-Platform Desktop Applications with Electron
- Full-Stack Vue.js 2 and Laravel 5
- Python機器學習實戰
- Scala謎題
- C語言程序設計學習指導與習題解答
- Linux C編程:一站式學習
- HTML5秘籍(第2版)
- C++寶典
- LabVIEW虛擬儀器程序設計從入門到精通(第二版)
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- Mastering Python