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

Understanding the mediator pattern

The mediator design pattern is used to permit object interactions without using explicit object references. This is an advanced use of the object-oriented programming encapsulation concept. Mediators manage the interactions between two or more objects. A real-world example is a legal mediator where both sides of a lawsuit communicate to the mediator, but not directly to each other.

We will look at an example use case, the UML class diagram, and the source code necessary to implement the mediator design pattern for this scenario.

主站蜘蛛池模板: 富源县| 师宗县| 卓尼县| 孝昌县| 蒙阴县| 曲麻莱县| 七台河市| 寻乌县| 巫山县| 丰原市| 枣强县| 西藏| 鹤岗市| 庄河市| 讷河市| 葫芦岛市| 尤溪县| 利辛县| 凤台县| 丰都县| 禹州市| 武清区| 太谷县| 陇西县| 开封市| 洪泽县| 马边| 卓尼县| 鄂州市| 香港 | 白沙| 绥中县| 安丘市| 天镇县| 巴东县| 乃东县| 锡林浩特市| 太保市| 民权县| 桃园县| 正蓝旗|