摘要: 中介者模式的定义:Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.(用一个中介对象封装一系列的对象交互,中介者是各对象不需要显示地相互作用,从而使其耦合松散,并且可以独立地改变它们之间的交互。)通用类图:中介者模式中的角色: 阅读全文
posted @ 2012-12-30 23:11 qwertWZ 阅读(475) 评论(0) 推荐(0) 编辑