Spring IOC Implementation Principles: Timing of Container and Object Creation
Bean lifecycle Initialize container In contrast , lazy-loaded containers create objects BeanFactory only on the first invocation .getBean() Parse the configuration and generate BeanDefinition Spring first reads the configuration file (such as XML or annotations), and parses <bean> the definitions in the tags, for example: This information will be encapsulated into BeanDefinition an object that describes the Bean’s metadata, including: property illustrate … Read more