随笔分类 - 设计模式 / 行为型设计模式
摘要:The Mediator design pattern defines an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping from referi
阅读全文
摘要:The Chain of Responsibility design pattern avoids coupling the sender of the request to its receiver by giving more than one object a chance to handle
阅读全文
摘要:Give a language, the Interpreter design pattern defines a representation for its grammar along with an interpreter that uses the representation to int
阅读全文
摘要:The Command design pattern encapsulates a request as an object, thereby letting you paramize clients with different requests, queue or log requests, a
阅读全文
摘要:The Iterator design pattern provides a way to acess the elements of an aggregate object sequentially without exposing its underlying representation. 迭
阅读全文
摘要:The State design pattern allows an object to alter its behavior when its internal state changes, The object will appear to change its class.状态设计模式允许当对
阅读全文
摘要:The Strategy design pattern defines a familiy of algorithms, encapsulate each one, and make them interchangeable. This pattern lets the algorithm vary
阅读全文
摘要:The Template Method design pattern defines the skeleton of an algorithm in an operation, defering some steps to subclasses. This pattern lets subclass
阅读全文
摘要:The Visitor design pattern represents an operation to be peformed on the elements of object structure. This pattern lets you define a new operation wi
阅读全文
摘要:The Observer design pattern defines a one-to-many dependency between objects so that when one object changes states, all its dependents are notified a
阅读全文