设计模式

创建型

 

FactoryMethod(工厂方法)

Product(产品),ConcreteProduct,Creator(创造者),ConcreteCreator

Abstract Factory(抽象工厂)

AbstractProduct,ConcreteProduct,AbstractFactory,ConcreteFactory

Builder(生成器)

Director(指挥者),Builder(建设者),ConcreteBuilder,Porduct(产品)

Prototype(原型)

Prototype(原型)

Singleton(单态)

Singleton(单身)

结构型

 

Adapter(适配器)

Target(目标),Adapter(适配者),Adaptee(适配)

Bridge(桥接)

Abstraction(抽象),RefinedAbstraction(精制的抽象),Implementor(实现),ConcreteImplementor

Composite(组合)

Component(组件),Leaf(叶子),Composite(复合)

Decorator(装饰)

Component(组件),ConcreteComponent,Decorator(装饰),ConcreteDecorator

Facade(外观)

Facade(正面),SubSystem(子系统)

Flyweight(亨元)

FlyweightFactory,Flyweight(轻量级),ConcreteFlyweight

Proxy(代理)

Subject(主题),RealSubject,Proxy(代理)

行为型

 

Interpreter(解释器)

Context(上下文),AbstractExpression(抽象表达式),TerminalExpression,NoterminalExpression

TemplateMethod(模板方法)

AbstractClass,ConcreteClass

chain of Responsibility(职责链)

Handler(处理),ConcreteHandler

Command(命令)

Invoker(调用),Command(命令),ConcreteCommand,Receiver(接收器)

Iterator(迭代器)

Aggregate(并集),ConcreteAggregate,Iterator(迭代器),ConcreteInterator

Mediator(中介者)

Mediator(中间人),ConcreteMediator,Colleague(合作者),ConcreteColleague

Memento(备忘录)

Originator(鼻祖),Memento(纪念品),Caretaker(管理人)

Observer(观察者)

Subject(主题),ConcreteSubject,Observer(观察者),ComcreteObserver

State(状态)

Context(上下文),State(状态),ConcreteState

Strategy(策略)

Context(上下文),Strategy(策略),ConcreteStrategy

Visitor(访问者)

Visitor(来客),ConcreteVisitor,Element(元素),ConcreteElement


posted @ 2012-10-28 23:05  Leung文  阅读(124)  评论(0编辑  收藏  举报