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 post-processing
- [Narrator] In our IoC Container, we have fully baked objects that are almost ready for use. We now enter the bean post-processing section of the life cycle, which is three distinct steps, but we discuss them as one. So, where we are is, we're now at the last three steps of the forage bean. So, we've got pre-init bean post processors, posting it, bean post processors, and right in the middle is our initializer. Let's talk a little bit about being post-processing. This is the final point of configuration manipulation. This is our last opportunity to do work on the beans themselves before they are served to a running application. Each bean may have additional behaviors added during the bean post-processing event. There are two types of extensible and generic processing before and after initializer. The initializer, we've actually already seen this is the second bean post-processor action. So again, we've got…
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
-
-
-
-
-
-
Why the lifecycle is so important3m 38s
-
The overall picture2m 25s
-
The init phase: Loading bean definitions2m 54s
-
Init: Bean factory post-processing3m 55s
-
Init: Bean instantiation3m
-
Init: Setters1m 54s
-
Init: Bean post-processing3m 25s
-
Init: Differences based on configuration2m 49s
-
The use phase1m 56s
-
The destruction phase2m 6s
-
-
-