自由飞翔

我在仰望,java之上

统计

留言簿(2)

我关注的blog

阅读排行榜

评论排行榜

ssh与设计模式

参考文章来源:
http://www.docin.com/p-87219490.html  
http://kaixuan489577823.iteye.com/blog/662864  
一、struts1主要用到的设计模式:
1.Straegy策略模式
2.singletom单例模式
3.command命令模式
4.Facade外观模式
5.composite view组成模式
6.decorator装饰模式
7.MVC模式
二、spring主要用到的设计模式:
1.简单工厂即静态工厂模式Static Factory Method
2.工厂模式Factory Method
3.单例模式Singleton
4.适配器Adapter
5.装饰器Decorator
6.代理Proxy
7.观察者Observer
8.策略Strategy
9.模板方法Template Method
三、struts2主要用到的模式:
1.MVC模式
2.command命令模式
3.代理Proxy
4.适配器Adapter
5.单例模式Singleton
6. 职责链模式 Chain of Responsibility 

GoF设计模式的分类: 
根据目的准则分类: 
1. 创建型:creational 与对象的创建有关。 
2. 结构型:Structural 处理类或对象之间的组合。 
3. 行为型:behavioral 描述类或对象如何交互及如何分配职责。


创建型模式

1.抽象工厂模式 AbstractFactory 
2.建造者模式 Builder 
3.工厂方法模式 Factory Method 
4.原型模式 Prototype 
5.单例模式 Singleton 

结构型模式 

1.适配器模式 Adapter 
2.桥接模式 Bridge 
3.组合模式 Composite 
4.装饰模式 Decorator 
5.外观模式 Facade 
6.享元模式 Flyweight 
7.代理模式 Proxy 

行为模式 

1.职责链模式 Chain of Responsibility 
2.命令模式 Command 
3.解释器模式 Interpreter 
4.迭代器模式 Iterator 
5.中介者模式 Mediator 
6.备忘录模式 Memento 
7.观察者模式 Observer 
8.状态模式 State 
9.策略模式 Strategy 
10.模板方法模式 Template Method 
11.访问者模式 Visitor


Gavin

posted on 2011-08-29 10:42 GavinMiao 阅读(2220) 评论(1)  编辑  收藏 所属分类: other

评论

# re: ssh与设计模式 2013-10-23 16:20 我不是程序员

难道我要告诉你我不是程序员,真是荒唐  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: