Spring IOC container Design--Main Line

Source: Internet
Author: User

Interface design diagram for IOC container

Below to do some brief analysis of the interface relationship, you can understand this interface design according to the following content.

  • From the interfacebeanfactoryTohierarchicalbeanfactory, and then toconfigurablebeanfactory, is athe main beanfactory design Route。 In this interface design route,Beanfactory InterfaceDefines thespecification of the basic IOC container。 In this interface definition, the basic method of an IOC container such as Getbean () is included (this method allows the bean to be obtained in a leisurely device). andhierarchicalbeanfactoryInterface ininherited theAfter the basic interface of the Beanfactory,added interface function for Getparentbeanfactory (), so that Beanfactory has athe management function of the parent IOC container。 In the nextconfigurablebeanfactoryinterface, the main definition of someconfiguration features for the Beanfactory, such as setting up the parent IOC container through Setparentbeanfactory (), configuring the Bean Post Processor through addbeanpostprocessor (), and so on.The overlay designed by these interfaces defines beanfactory as the basic function of the simple IOC container.

Spring IOC Container design-Main Line

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.