摘要:
建造者模式建造者模式(Builder Pattern) 也叫作生成器模式。1建造者模式的定义建造者模式的英文原话是:Separate the construction of a complex object from its representation so that the same const 阅读全文
摘要:
命令模式 命令模式(Command Pattern)又称为行动(Action)模式或交易(Transaction)模式。 1命令模式的定义 命令模式的原文是: Encapsulate a request as an object, thereby letting you parameterize c 阅读全文
摘要:
模板方法模式 模板方法模式(Tempate Method Pattern) 是一种简单的、常见的且应用非常广泛的模式。 1模板方法模式的定义 模板方法模式的英文原文是: Define the skeleton of an algorithm in an operation, deferring so 阅读全文
摘要:
享元模式享元模式(Flyweight Pattern) 是池技术的重要方式,可以降低大量的重复的、细粒度的类在内存中的开销。1享元模式的定义享元模式的英文原文是:Use sharing to support large numbers of fine-grained objects efficien 阅读全文
摘要:
外观模式外观模式(Facade Pattern) 也叫门面模式,是一种比较常见并且很简单的设计模式。1外观模式的定义外观模式的英文原文是:Provide a unified interface to a set of interface in a subsystem. Facade defines 阅读全文
摘要:
桥梁模式桥梁模式(Bridge Pattern)也称为桥接模式,是一种简单、不常用的设计模式。1桥梁模式的定义桥梁模式的英文原话是:Decouple an abstraction from implementation so that the two can vary independently.意 阅读全文
摘要:
组合模式组合模式(Composite Pattern) 也叫合成模式,用来描述部分与整体的关系。1组合模式的定义组合模式的英文原文是:Compose Object into tree structures to represent part-whole hierarchies(层级分类). Comp 阅读全文