From the course: Spring Framework in Depth
Unlock this course with a free trial
Join today to access over 25,600 courses taught by industry experts.
The init phase: Loading bean definitions - Spring Framework Tutorial
From the course: Spring Framework in Depth
The init phase: Loading bean definitions
- [Instructor] The first step of initialization is the loading of bean definitions. In our original overview, this is where we are at in the initialization phase. There are several sources of our bean definitions. While we're talking about the lifecycle from a traditional flow, there is some slight variance here on how each of these gets loaded. JavaConfig is the first that we will talk about. This is the most different of the loading of bean definitions because the objects are constructed as part of reading the definitions, so keep that in mind as we go through the rest of this chapter. This configuration strategy impacts how many of these beans can be initialized. XML configuration is still valid for configuring the application context. Though it isn't preferred anymore, it is still being used in many applications. The XML file or files are read to prime the bean definitions. The final way we will talk about, and we've already seen, is component scanning and ultimately…
Contents
-
-
-
-
-
-
(Locked)
Why the lifecycle is so important3m 45s
-
(Locked)
The overall picture1m 57s
-
(Locked)
The init phase: Loading bean definitions3m 29s
-
(Locked)
Init: Bean factory post-processing3m 49s
-
(Locked)
Init: Bean instantiation3m 21s
-
(Locked)
Init: Setters1m 51s
-
(Locked)
Init: Bean post-processing3m 8s
-
(Locked)
Init: Differences based on configuration2m 46s
-
(Locked)
The use phase3m 2s
-
(Locked)
The destruction phase3m 15s
-
(Locked)
-
-