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 instantiation
- So, as promised, we're now going to start taking a look at actions that are taken on each individual bean in the factory with the instantiation phase. So once again, back to our big chart. So the entire bean factory's been processed. We're now going to iterate over each bean individually and do the work that is necessary following these steps. So, we're going to construct some objects and let's talk about what that means. So beans are instantiation in the factory using the constructors. Of course, you have to construct an object using a constructor in the Java programming language. Now the most important thing and something that we alluded to earlier, is that these are done in the correct order to insure that dependencies are always created first. So classes that have the most dependencies are going to actually be done towards the end because they've got to have everything else created for them before they are…
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)
-
-