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

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.
主站蜘蛛池模板: 金山区| 清苑县| 常熟市| 罗田县| 永宁县| 东台市| 铜鼓县| 乌鲁木齐县| 佛山市| 塘沽区| 改则县| 简阳市| 道孚县| 江西省| 三台县| 枞阳县| 长葛市| 绥江县| 钟山县| 突泉县| 珠海市| 汪清县| 九龙坡区| 新宁县| 分宜县| 得荣县| 蚌埠市| 会同县| 五常市| 无棣县| 南川市| 九寨沟县| 车险| 双辽市| 广南县| 霸州市| 屏东市| 越西县| 原阳县| 平昌县| 吉林市|