October 2017
Intermediate to advanced
396 pages
10h 2m
English
In this step, all the configuration files--@Configuration classes or XML files-are processed. For Annotation-based configuration, all the classes annotated with @Components are scanned to load the bean definitions. All XML files are parsed, and the bean definitions are added to a BeanFactory. Each bean is indexed under its id. Spring provides multiple BeanFactoryPostProcessor beans, so, it is invoked to resolve runtime dependencies such as reading values from external property files. In a Spring application, BeanFactoryPostProcessor can modify the definition of any bean. The following diagram describes this step:

As shown ...
Read now
Unlock full access