摘要:
装饰模式的定义: Attach additional responsibilities to an object dynamically keeping the same interface. Decorators provide a flexible alternativeto subclassi 阅读全文
posted @ 2016-05-12 17:11
山高我为峰
阅读(305)
评论(0)
推荐(0)
摘要:
责任链模式的定义: 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 obj 阅读全文
posted @ 2016-05-12 15:21
山高我为峰
阅读(222)
评论(0)
推荐(0)
摘要:
命令模式的定义: Encapsulated a request as an object ,thereby letting you parameterize clients with different requests, queue or log requests,and support undo 阅读全文
posted @ 2016-05-12 13:53
山高我为峰
阅读(310)
评论(0)
推荐(0)
摘要:
中介者模式定义: Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objectsfrom referring to each o 阅读全文
posted @ 2016-05-12 11:39
山高我为峰
阅读(206)
评论(0)
推荐(0)
摘要:
原型模式的定义: Specify the kinds of objects to create using a prototypical instance, and create new objects by copying this prototype; 用原型实例指定创建对象的种类,并且通过拷贝 阅读全文
posted @ 2016-05-12 02:12
山高我为峰
阅读(230)
评论(0)
推荐(0)
浙公网安备 33010602011771号