摘要: 1、定义 1.1 标准定义 门面模式(Facade Pattern)也叫做外观模式,是一种比较常用的封装模式,其定义如下: Provide a unified interface to a set of interfaces in a subsystem.Facade defines a highe 阅读全文
posted @ 2017-08-06 23:43 Memset 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1、定义 1.1 标准定义 观察者模式(Observer Pattern)也叫做发布订阅模式(Publish/subscribe),它是一个在项目中经常使用的模式,其定义如下: Define a one-to-many dependency between objects so that when 阅读全文
posted @ 2017-08-06 21:20 Memset 阅读(368) 评论(0) 推荐(0) 编辑