上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 1、定义 1.1 标准定义 备忘录模式(Memento Pattern)提供了一种弥补真实世界缺陷的方法,让“后悔药”在程序的世界中真实可行,其定义如下:Without violating encapsulation,capture and externalize an object's inter 阅读全文
posted @ 2017-08-07 21:18 Memset 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 1、定义 1.1 标准定义 组合模式(Composite Pattern)也叫合成模式,有时又叫做部分-整体模式( Part-Whole),主要是用来描述部分与整体的关系,其定义如下: Compose objects into tree structures to represent part-wh 阅读全文
posted @ 2017-08-02 23:10 Memset 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1、定义 1.1 标准定义 迭代器模式(Iterator Pattern)目前已经是一个没落的模式,基本上没人会单独写一个迭代器,除非是产品性质的开发,其定义如下: Provide a way to access the elements of an aggregate object sequent 阅读全文
posted @ 2017-08-01 22:40 Memset 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 1、定义 1.1 标准定义 适配器模式(AdapterPattern)的定义如下: Convert the interface of a class into another interface clients expect.Adapter lets classes work together th 阅读全文
posted @ 2017-07-30 23:02 Memset 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 1、定义 1.1标准定义 策略模式(StrategyPattern)是一种比较简单的模式,也叫做政策模式(PolicyPattern)。其定义如下: Define a family of algorithms,encapsulate each one,and make them interchang 阅读全文
posted @ 2017-07-28 22:50 Memset 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1、定义 1.1 标准定义 装饰模式(Decorator Pattern)是一种比较常见的模式,其定义如下: Attach additional responsibilities to an object dynamically keeping the same interface.Decorato 阅读全文
posted @ 2017-07-28 22:27 Memset 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 1、定义 1.1 标准定义 Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request.Chain the receiving 阅读全文
posted @ 2017-07-28 00:16 Memset 阅读(365) 评论(0) 推荐(0) 编辑
摘要: 1、 定义 1.1 标准定义 命令模式是一个高内聚的模式,其定义为: Encapsulate a request as an object,therebyletting you parameterize clients with different requests,queue or log req 阅读全文
posted @ 2017-07-27 22:23 Memset 阅读(349) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页