官术网_书友最值得收藏!

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.
主站蜘蛛池模板: 青川县| 奉化市| 搜索| 永嘉县| 巴中市| 乌海市| 株洲县| 辉南县| 永城市| 澳门| 内江市| 肃宁县| 蕲春县| 喀什市| 信阳市| 宣恩县| 道孚县| 山西省| 龙山县| 垫江县| 林芝县| 正蓝旗| 德保县| 女性| 海阳市| 大邑县| 历史| 大同市| 定襄县| 定远县| 松溪县| 泰兴市| 和林格尔县| 石门县| 来安县| 巢湖市| 尼玛县| 潼关县| 渝中区| 贺州市| 上虞市|