摘要: 一、定义 观察者模式(Observer Pattern)也叫做发布订阅模式(Publish/subscribe),它是一个在项 目中经常使用的模式,其定义如下: Define a one to many dependency between objects so that when one obje 阅读全文
posted @ 2016-12-28 07:50 飞轩 阅读(195) 评论(0) 推荐(0)
摘要: 一、定义 组合模式(Composite Pattern)也叫合成模式,有时又叫做部分 整体模式(Part Whole), 主要是用来描述部分与整体的关系,其定义如下: Compose objects into tree structures to represent part whole hiera 阅读全文
posted @ 2016-12-28 07:32 飞轩 阅读(180) 评论(0) 推荐(0)