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

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.

主站蜘蛛池模板: 丰原市| 商水县| 尼木县| 于都县| 苍溪县| 库尔勒市| 井陉县| 江城| 沽源县| 偏关县| 甘德县| 黔江区| 邓州市| 哈密市| 兴业县| 许昌县| 含山县| 墨脱县| 华阴市| 龙口市| 永寿县| 湖州市| 永胜县| 云和县| 黄骅市| 北碚区| 商水县| 镇原县| 南昌市| 西林县| 宁乡县| 张掖市| 冀州市| 含山县| 依兰县| 江津市| 邛崃市| 三河市| 尼勒克县| 涞源县| 拉萨市|