设计模式汇总

http://www.cnblogs.com/zhenyulu/category/6930.html 

  • 简单工厂(Simple Factory)模式
  • 工厂方法(Factory Method)模式
  • 抽象工厂(Abstract Factory)模式

     策略(Strategy)模式

     单例(Singleton)模式

     建造者(Builder)模式

     合成(Composite)模式

    适配器(Adapter)模式

    原型(Prototype)模式

    装饰(Decorator)模式

     代理(Proxy)模式

     享元(Flyweight)模式

     门面(Facade)模式

    桥梁(Bridge)模式

     

  • Chain of Resp.(责任链模式)A way of passing a request between a chain of objects
  • Command(命令模式)Encapsulate a command request as an object
  • Interpreter(解释器模式)A way to include language elements in a program
  • Iterator(迭代子模式)Sequentially access the elements of a collection
  • Mediator(中介者模式)Defines simplified communication between classes
  • Memento(备忘录模式)Capture and restore an object's internal state
  • Observer(观察者模式)A way of notifying change to a number of classes
  • State(状态模式)Alter an object's behavior when its state changes
  • Strategy(策略模式)Encapsulates an algorithm inside a class
  • Template Method(模版方法模式)Defer the exact steps of an algorithm to a subclass
  • Visitor(访问者模式)Defines a new operation to a class without change
  •  

     

     

  • posted on 2010-01-06 18:00  http  阅读(120)  评论(0)    收藏  举报

    导航