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

The init phase: Loading bean definitions

From the course: Spring: Framework in Depth

Start my 1-month free trial

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…

Contents