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

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.

主站蜘蛛池模板: 富民县| 资阳市| 平远县| 长汀县| 宁安市| 馆陶县| 库车县| 汨罗市| 伊宁县| 闽侯县| 德化县| 郁南县| 榆社县| 利津县| 株洲市| 灵寿县| 富锦市| 大连市| 射阳县| 沭阳县| 延边| 锦州市| 宁波市| 通州区| 南投市| 巴楚县| 泾川县| 洛隆县| 丽江市| 宜城市| 龙州县| 新兴县| 天长市| 明星| 乌鲁木齐县| 瑞安市| 渭南市| 竹山县| 左权县| 宁南县| 郯城县|