Design Mode stenographer, design mode classification stenographer

Source: Internet
Author: User

Design Mode stenographer, design mode classification stenographer

Creation Mode
The static Factory Pattern method returns an instance.
Returns an instance through the Abstract Factory Pattern interface.
Builder Pattern returns multiple instances each time
Singleton Pattern class only has one instance
Implement the ICloneable interface in Prototype Pattern

Structural Mode
Adapter Pattern does not want to implement each interface
Bridge Pattern sets an instance for the Bridge and calls the instance method using the Bridge.
Filter and Criteria Pattern Filter sets by conditions
Composite Pattern tree structure, including parent and child nodes
Decorator Pattern
Facade Pattern: Relationship between computer and CPU and memory
Is the Flyweight Pattern similar to the threadpool management thread?
The Proxy Pattern cannot be used to modify a method. inherit this class to extend this method.

Behavior mode
The Chain of Responsibility Pattern receiver contains a reference from another receiver. If an object cannot process this request, it will send the same request to the next receiver.
Command Pattern data driver, wrapped in an object as a Command, and passed to the called object
The Interpreter mode (Interpreter Pattern) implements an expression interface that interprets a specific context. This mode is used in SQL parsing and symbol Processing engines.
The Iterator Pattern is used to implement the collection class.
The Mediator Pattern reduces the complexity of communication between multiple objects and classes. This Pattern provides an intermediary class that processes communication between different classes and supports loose coupling, easy code Maintenance
Memento Pattern backs up a data record and can be restored later.
Observer Pattern delegate method call
State Pattern calls different methods based on the State.
Default action of Null Object Pattern in Null state
Strategy Pattern add, substract class implements the calculator interface, and a helper class implements computing
The Template Pattern abstract class uses one seal method to call other virtual methods.
The Visitor Pattern uses the accept (visitor) method to accept the visitor to call its own method.

Related Article

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.