First, Struts1The main use of the design pattern:
1.StraegyPolicy Mode
2.singletomsingle-case mode
3.commandCommand mode
4.Facadeappearance mode
5.composite ViewComposition Mode
6.decoratorDecoration Mode
7.MVCMode
TwoSpringThe main use of the design pattern:
1.Simple Factory is static Factory modeStatic Factory Method
2.Factory modeFactory Method
3.single-case modeSingleton
4.AdapterAdapter
5.Decorative DeviceDecorator
6.AgentProxy
7.observersObserver
8.StrategyStrategy
9.Template MethodTemplate Method
Threestruts2The main mode used:
1.MVCMode
2.commandCommand mode
3.AgentProxy
4.AdapterAdapter
5.single-case modeSingleton
6. Responsibility Chain ModelChain of Responsibility
Second, GoFClassification of design patterns:
Classification by objective criteria:
1. Create type:creationalrelated to the creation of objects.
2. Structural type:Structuralhandles a combination of classes or objects.
3. Behavioral Type:Behavioraldescribes how classes or objects interact and assign responsibilities.
Create pattern
1.Abstract Factory modeabstractfactory
2.Builder ModeBuilder
3.Factory Method ModeFactory Method
4.prototype ModePrototype
5.single-case modeSingleton
Structural mode
1.Adapter ModeAdapter
2.Bridging ModeBridge
3.Combination ModeComposite
4.Decoration ModeDecorator
5.appearance modefacade
6.enjoy meta modeFlyweight
7.Proxy ModeProxy
Behavioral patterns
1.Responsibility Chain ModelChain of Responsibility
2.Command modeCommand
3.Interpreter ModeInterpreter
4.iterator ModeIterator
5.Broker ModeMediator
6.Memo ModeMemento
7.Observer PatternObserver
8.State mode State
9.Policy ModeStrategy
10.Template Method ModeTemplate Method
11.Visitor ModeVisitor
SSH and design mode