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

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.
主站蜘蛛池模板: 梁河县| 盐亭县| 大英县| 遂昌县| 湖南省| 隆昌县| 浦县| 舞阳县| 柘城县| 安达市| 东乌珠穆沁旗| 梁平县| 红安县| 鄱阳县| 陵水| 龙门县| 柳江县| 赣州市| 沙田区| 厦门市| 红河县| 石楼县| 栾川县| 新和县| 无锡市| 赫章县| 梅河口市| 左贡县| 昌黎县| 礼泉县| 玉树县| 西平县| 江门市| 仪陇县| 绥宁县| 丹棱县| 永城市| 涿州市| 手机| 孝义市| 乐亭县|