- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 88字
- 2021-06-24 14:58:09
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.
推薦閱讀
- 數(shù)據(jù)產(chǎn)品經(jīng)理高效學(xué)習(xí)手冊(cè):產(chǎn)品設(shè)計(jì)、技術(shù)常識(shí)與機(jī)器學(xué)習(xí)
- Hands-On Data Structures and Algorithms with Rust
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)
- 云計(jì)算與大數(shù)據(jù)應(yīng)用
- Python醫(yī)學(xué)數(shù)據(jù)分析入門
- 數(shù)據(jù)庫(kù)技術(shù)及應(yīng)用教程
- 大數(shù)據(jù)技術(shù)入門
- 云數(shù)據(jù)中心網(wǎng)絡(luò)與SDN:技術(shù)架構(gòu)與實(shí)現(xiàn)
- Hadoop集群與安全
- Oracle數(shù)據(jù)庫(kù)管理、開發(fā)與實(shí)踐
- 大數(shù)據(jù)分析:數(shù)據(jù)倉(cāng)庫(kù)項(xiàng)目實(shí)戰(zhàn)
- 企業(yè)大數(shù)據(jù)處理:Spark、Druid、Flume與Kafka應(yīng)用實(shí)踐
- 智能與數(shù)據(jù)重構(gòu)世界
- 一本書讀懂大數(shù)據(jù)
- NoSQL數(shù)據(jù)庫(kù)原理(第2版·微課版)