设计模式系列文章:https://zhum.in/blog/category/notes/design-pattern Demo code:https://github.com/njZhuMin/BlogSampleCode 中介者模式 中介者模式(Mediator Pattern)又称为调解者模式或调停者模式。中介者模式使用一个中介对象来封装一系列的对象交互过程,使各对象之间不需要显式地直接相互调用,从而松散耦合,而且可以独立地改变它们之间的交互。属于行为型模式。 一个系统中,如果各层次对象之间存在大量的关联关系…

2020-03-22 0条评论 1551点热度 0人点赞 SilverLining 阅读全文