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

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.
主站蜘蛛池模板: 和顺县| 榆中县| 舒城县| 杭锦后旗| 太白县| 大兴区| 阿城市| 原平市| 绥芬河市| 通江县| 当雄县| 温宿县| 永吉县| 绵阳市| 湘潭县| 宿迁市| 永德县| 凉山| 房山区| 伊宁县| 长白| 玉田县| 尼勒克县| 鹤庆县| 越西县| 枣阳市| 扬中市| 中超| 临夏市| 福鼎市| 苍溪县| 建瓯市| 石河子市| 夏邑县| 屏东县| 婺源县| 左贡县| 卢湾区| 乐陵市| 定日县| 扎鲁特旗|