设计模式总结
之前看了一些设计模式相关的书,感觉没用起来,而且属于记不住的知识点,但又很重要。为了对博客不造成污染,特将设计模式列表记录一下,方式借鉴参考了 Keans' Blog,在此要表示感谢。该系列将随着思考的深入不断更新完善。每个分类下的模式关注点不同:创建型模式关注于对象的创建同时隐藏创建逻辑;结构型模式关注类和对象的组合;行为型模式关注点在于对象之间的组合。
| ID | 模式名称 | 类别 | 实现 |
|---|---|---|---|
| 1 | 单例模式(Singleton) | 创建型 | Resolved |
| 2 | 简单工厂模式(Simple Factory) | 创建型 | Resolved |
| 3 | 工厂方法模式(Factory Method) | 创建型 | Resolved |
| 4 | 抽象工厂模式(Abstract Factory) | 创建型 | Resolved |
| 5 | 建造者模式(Builder) | 创建型 | Resolved |
| 6 | 原型模式(Prototype) | 创建型 | Resolved |
| 7 | 适配器模式(Adapter) | 结构型 | Resolved |
| 8 | 桥接模式(Bridge) | 结构型 | Unresolved |
| 9 | 装饰者模式(Decorator) | 结构型 | Unresolved |
| 10 | 组合模式(Composite) | 结构型 | Unresolved |
| 11 | 外观模式(Facade) | 结构型 | Unresolved |
| 12 | 享元模式(Flyweight) | 结构型 | Unresolved |
| 13 | 代理模式(Proxy) | 结构型 | Unresolved |
| 14 | 模板方法模式(Template Method) | 行为型 | Unresolved |
| 15 | 命令模式(Command) | 行为型 | Unresolved |
| 16 | 迭代器模式(Iterator) | 行为型 | Resolved |
| 17 | 观察者模式(Observer) | 行为型 | Resolved |
| 18 | 中介者模式(Mediator) | 行为型 | Unresolved |
| 19 | 状态者模式(State) | 行为型 | Unresolved |
| 20 | 策略者模式(Stragety) | 行为型 | Resolved |
| 21 | 责任链模式(Chain Of Responsibility) | 行为型 | Unresolved |
| 22 | 访问者模式(Visitor) | 行为型 | Unresolved |
| 23 | 备忘录模式(Memento) | 行为型 | Unresolved |