设计模式
2016-05-12 15:31
393 查看
设计模式
百度空间以前敲的全没了,重新总结下。创建型
1. Factory Method(工厂方法)
2. Abstract Factory(抽象工厂)
3. Builder(建造者)
4. Prototype(原型)
5. Singleton(单例)
结构型
6. Adapter Class/Object(适配器)7. Bridge(桥接)
8. Composite(组合)
9. Decorator(装饰)
10. Facade(外观)
11. Flyweight(享元)
12. Proxy(代理)
行为型
13. Interpreter(解释器)14. Template Method(模板方法)
15. Chain of Responsibility(责任链)
16. Command(命令)
17. Iterator(迭代器)
18. Mediator(中介者)
19. Memento(备忘录)
20. Observer(观察者)
21. State(状态)
22. Strategy(策略)
23. Visitor(访问者)
简单工厂factory
策略模式strategy
装饰模式decorator
代理模式proxy
原型模式prototype
模板方法模式templateMethod
外观模式Facede
建造模式Builder
抽象工厂Abstract Factory
状态模式State
适配器模式adapter
备忘录模式Memento
组合模式Composite
迭代器模式Iterator
单态模式Singleton
命令模式Command
职责链模式Chain of Responsibility
中介者模式Mediator
享元模式Flyweight
解释器模式interpreter
访问者模式Visitor
桥接模式Bridge
JavaDemo源码:
https://github.com/dingsai88/StudyTest/tree/master/src/ding/study/designpatterns不错的资料
http://www.cnblogs.com/beijiguangyong/archive/2010/11/15/2302807.html
相关文章推荐
- [从头学声学] 第212节 辅音的数据
- Java垃圾回收机制
- 浏览器中音频兼容性问题(上)
- maven webapp后无法添加src/main/java和src/main/test
- android-如何获得当前正在运行的activity的相关信息
- C++编译报错解决方法记录
- 推荐个Jquery颜色选择控件 jquery colpick..用来设置背景不错。
- 00.Maven简介
- C# EF CodeFirst简单工厂模式,接口多继承实例
- LNMP环境搭建精华
- android应用实现重启系统
- 7.34 Unix卸载oracle
- 自制水晶按钮
- bzoj1941: [Sdoi2010]Hide and Seek
- 查看Android应用所需权限(uses-permission)
- java第6次作业
- springMVC @ModelAttribute学习
- Python中遍历字典过程中更改元素导致异常的解决方法
- double 如何转为 long
- Tomcat配置多应用共享Session(使用crossContext)