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