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.
The init phase: Loading bean definitions
From the course: Spring: Framework in Depth
The init phase: Loading bean definitions
- [Instructor] The first step of initialization is the loading of the Bean definitions. So in our big picture overview, we're in this box here that says Bean Definitions Loaded. There are several sources of 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. Java config is the first we will talk about. This is the most different of the loading of the Bean definitions because the objects are constructed as part of reading the definition. So keep that in mind as we go through the rest of the chapter. This configuration strategy may impact how these Beans are 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, especially some older ones. The XML file or files are read to prime the Bean definitions. And the…
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)
-
-