Design mode (Patterns in Java)

Source: Internet
Author: User
Tags object string access
Designing the design mode of Banqiao is the earliest introduction of the system in the domestic media (including books and websites). This series introduces pure for free dissemination (reprint this website article, please keep the author and the website), as far as possible concise, is easy to understand, but inevitably has the omission to ask the letter or the forum discussion, unceasingly consummates.


The real mastery of design patterns needs to be constantly studied and used in practice, with regard to the application of design patterns in concrete cases, you can read the books of Banqiao's book "Java Practical System Development Guide." In the book 8 examples all from the design pattern, the frame and so on the system carries on the brand-new design and the realization, this kind of application idea is the present and the future software design and the programming fundamental way. 1: Preface
The importance of learning Gof design Patterns

Similarities and differences of patterns in architecture and software
2:gof design pattern A. Creating patterns
Design Pattern Factory (Factory mode) using Factory mode is as frequent as using new. 2002/10/9 Update
The prototype (prototype pattern) of the design pattern specifies the type of object to create with a prototype instance, and creates a new object by copying the prototypes. Design mode builder The car is made up of many parts of the wheel steering engine, and assembling these parts into a car is also a complex task, and the builder model is to separate the two. The singleton (single State mode) of the design pattern guarantees that a class has only one instance and provides a global access point to access it 2002/10/9 update B. Structural pattern
The façade of the design pattern extensible use of JDBC for different database programming, the façade provides a flexible implementation.

The proxy of design pattern takes jive as an example, analyzes the application of Agent mode in user-level authorization mechanism

The design pattern adapter two ways to use class regeneration: combination (new) and inheritance (extends), which has been mentioned in "Thinking in Java".
The composite of a design pattern is to combine a class with a tree structure into a unit. You introduce to others that you are a unit, you are an element of the unit, others and you do business, equivalent to the unit of business. The article also analyzes the jive. The design pattern of the decoratordecorator is a painter, to give you the appearance of the dongdong painted beautiful colors. Design mode bridge will "Cowboy Weaver" separate (should be together, separate them, form two interface), between them to build a bridges (dynamic combination) design mode flyweight provides Java performance, reduce the cost of small and large number of duplicate classes. C. The template of behavioral pattern design patterns actually introduces you to why you should use Java abstract classes, which are simple in principle and common to use. The memento of the design pattern is a simple pattern of keeping copies of the original data in memory. Design pattern Observer describes how to use the out-of-the-box observer design pattern provided by the Java API chain of the responsibility of the class of the respective classes to string into a string, as if the drums to pass flowers, of course, if you can complete, do not push to the next one. Design mode command is the best description of what is the encapsulation of behavior. The state of the design pattern is an example often encountered in programming, the state object is set up, the state converter can be easily switched in the state. The design pattern of strategy different algorithms are packaged, the client can select the desired algorithm at will. The design pattern of the mediatormediator is very much like the intersection of traffic lights, each vehicle can only interact with the traffic lights. The design pattern interpreter mainly uses in the language analysis, the application opportunity is not many. Design Pattern Visitor Visitors perform a series of substantive operations and can be extended when they visit. Design pattern iterator This pattern has been integrated into the Java collection. In most situations, you do not have to create a iterator on your own, just load the object into the collection and use iterator to traverse the object directly. 3: English information
Thinking in Patterns and the author of Java Thinking in Java Eckel another book!

CMSC491D design Patterns in Java Overview of the design Patterns precisely defines each pattern and their relational design Patterns Java Companion
4:J2EE design Pattern
Design pattern application in EJB This is the article in the 6th issue of "Programmer" by Banq, a man in Banqiao. EJB design Pattern (English) from design mode to understand EJB or Java EE I think is a very effective way.



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.