随笔分类 - 设计模式
摘要:The Mediator design pattern defines an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping from referi
阅读全文
摘要:The Bridge design pattern decouples an abstraction from its implementation so tha the two can vary independently. 桥接模式将抽象和实现解耦,以便两者可以独立变化。 UML Class D
阅读全文
摘要:The Adpative design pattern converts the interface of a class to another interface clients expect. This design pattern lets classes work together that
阅读全文
摘要:The Decorator Design Pattern attaches additional responsibilities to an object dynamically. This pattern provide a flexible alternative to subclassing
阅读全文
摘要:The Composite design pattern composes objects into tree structures to represent part-whole hierarchies. This pattern lets clients treat individual obj
阅读全文
摘要:The Facade design patten provides a unified interface to a set of interfaces in a subsystem.This pattern defines a higher-level interface that makes t
阅读全文
摘要:The Command design pattern encapsulates a request as an object, thereby letting you paramize clients with different requests, queue or log requests, a
阅读全文
摘要:The Flyweight design pattern uses sharing to support large numbers of fine-gained objects efficiently. 享元模式用共享有效支持大量细粒度的对象。 UML Class Diagram Flyweigh
阅读全文
摘要: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 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 Creational Design Pattern are Categorized into two types. Object-Creational Patterns: Object -Creational Patterns deal with object creation. Here,
阅读全文
摘要: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 Singleton Design Pattern ensure a class has only one instance and provide a global point of access to it. UML Class Diagram The following are teh
阅读全文
摘要:The Abstract Factory Design Pattern provides a way to encapsulate a group of individual factories that have a common theme without specifying their co
阅读全文
摘要: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
阅读全文
摘要:The Prototype design pattern specifies the kind of objects to create using a prototypical instance, and create new objects by copying this prototype.
阅读全文

浙公网安备 33010602011771号