SSH and design mode

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.