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
From the course: Spring: Framework in Depth
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Why the lifecycle is so important3m 38s
-
The overall picture2m 25s
-
(Locked)
The init phase: Loading bean definitions2m 54s
-
(Locked)
Init: Bean factory post-processing3m 55s
-
(Locked)
Init: Bean instantiation3m
-
(Locked)
Init: Setters1m 54s
-
(Locked)
Init: Bean post-processing3m 25s
-
(Locked)
Init: Differences based on configuration2m 49s
-
(Locked)
The use phase1m 56s
-
(Locked)
The destruction phase2m 6s
-
(Locked)
-
-