- 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.
推薦閱讀
- 復(fù)雜性思考:復(fù)雜性科學(xué)和計算模型(原書第2版)
- InfluxDB原理與實戰(zhàn)
- Voice Application Development for Android
- Python數(shù)據(jù)分析:基于Plotly的動態(tài)可視化繪圖
- 深度剖析Hadoop HDFS
- 大話Oracle Grid:云時代的RAC
- OracleDBA實戰(zhàn)攻略:運維管理、診斷優(yōu)化、高可用與最佳實踐
- Python金融數(shù)據(jù)分析(原書第2版)
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- Access 2010數(shù)據(jù)庫程序設(shè)計實踐教程
- 數(shù)據(jù)庫原理與設(shè)計實驗教程(MySQL版)
- 數(shù)據(jù)中心經(jīng)營之道
- 標簽類目體系:面向業(yè)務(wù)的數(shù)據(jù)資產(chǎn)設(shè)計方法論
- Learning Ansible
- 一類智能優(yōu)化算法的改進及應(yīng)用研究