其他分享
首页 > 其他分享> > 中介者设计模式 学习笔记

中介者设计模式 学习笔记

作者:互联网

Mediator design pattern is used to provide a centralized communication medium between different objects in a system.
中介设计模式用于 在系统中不同对象之间提供集中的通信媒介。

According to GoF, mediator pattern intent is:

Allows loose coupling by encapsulating the way disparate sets of objects interact and communicate with each other. Allows for the actions of each object set to vary independently of one another.

Mediator Pattern Interface

Mediator Pattern Colleague Interface

标签:Mediator,pattern,Allows,中介,笔记,each,Interface,设计模式
来源: https://blog.csdn.net/weixin_37646636/article/details/120169465