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

Init: Bean instantiation

From the course: Spring: Framework in Depth

Start my 1-month free trial

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…

Contents