- 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.
推薦閱讀
- Java Web基礎與實例教程(第2版·微課版)
- Visual C++串口通信技術詳解(第2版)
- Linux網絡程序設計:基于龍芯平臺
- Scratch 3.0少兒編程與邏輯思維訓練
- Android 應用案例開發大全(第3版)
- Drupal 8 Configuration Management
- Learning ArcGIS for Desktop
- 微服務從小白到專家:Spring Cloud和Kubernetes實戰
- Python項目實戰從入門到精通
- Vue.js 2 Web Development Projects
- FFmpeg開發實戰:從零基礎到短視頻上線
- Mastering Object:Oriented Python(Second Edition)
- Ubuntu Server Cookbook
- Mastering Clojure
- JavaScript Mobile Application Development