From the course: Spring: Framework in Depth

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Init: Bean factory post-processing

Init: Bean factory post-processing

From the course: Spring: Framework in Depth

Start my 1-month free trial

Init: Bean factory post-processing

- [Instructor] We will now take a look at the final step of loading of the bean definitions into the factory. Once again back to our original overview, so we've loaded all of our bean definitions. Now we're in the post-process bean definition phase. The BeanFactory post-processors are a very important set of behaviors that occur, because all of the processing that occurs here happens before the objects are instantiated. Work that is performed here is done on the entire BeanFactory. Now that doesn't mean that every bean gets impacted, but every bean throughout the factory may have behavior done to it. At this point we can modify or transform any bean in the factory prior to its instantiation, and that's very important. We actually can change the configuration at this point when the BeanFactory is being loaded, because we haven't instantiated everything, because within Spring everything is a singleton. One of the most…

Contents