Design concept and design pattern analysis of Spring frame

Source: Internet
Author: User

Turn from:

https://www.ibm.com/developerworks/cn/java/j-lo-spring-principle/

Spring's design philosophy

The three core components of spring are described earlier, and if the core is selected in three of them, then the non-Beans component is not the same, why is it that spring is a bean-oriented programming (Bop,bean oriented Programming), the Bean in S Pring is the real protagonist.

The bean works in spring just as the object does for OOP, and without the concept of an object is like no object-oriented programming, there is no Bean in spring that does not have the meaning of spring. It's like a performance stage is ready but there is no actor. Why should bean this role bean, or why it is so important in spring, is determined by the spring framework's design goals, why spring is so popular, why we use spring, think you will find that spring solves a very critical problem he can make You switch the dependencies between objects into a configuration file, which is his dependency injection mechanism. And this injection relationship is managed in a container called IOC, and what is in the IOC container is the object that the Bean is wrapped in. Spring is the purpose of managing these objects and some additional columns by wrapping them in the Bean.

This design strategy is completely similar to the Java implementation of OOP design concept, of course, Java itself is more complex than the design of Spring, but it is to build a data structure, and then according to the data structure to design his living environment, and let it in this environment in accordance with a certain pattern of constant movement, In their nonstop movement design a series of information exchange with the environment or with other individuals. In this way, I think that the other frameworks we use are similar design concepts.

Design concept and design pattern analysis of Spring frame

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.