随笔分类 - 设计模式 / 结构性设计模式
摘要: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 Flyweight design pattern uses sharing to support large numbers of fine-gained objects efficiently. 享元模式用共享有效支持大量细粒度的对象。 UML Class Diagram Flyweigh
阅读全文
摘要:代理模式(proxy):为其他对象提供一种代理以控制对这个对象的访问。在某些情况下,一个对象不适合或者不能直接引用另外一个对象,而代理对象可以在客户端和目标对象之间起到中介的作用。 The Proxy design pattern provides a surrogate or placeholde
阅读全文