This video explains the operations that occur as beans are instantiated in the application context. It also explains the concept of eager or lazy instantiation of beans.
- [Instructor] Once all of the processing…on the bean factory itself is done,…we enter into the first phase of bean-specific functions…within the initialization phase of the lifecycle.…When we look at the overall picture here, we see that,…for each bean, we perform a series of actions,…and they are all done in this specific order.…In the beginning, beans themselves are instantiated…in the factory using their constructors.…Now they are done in the correct order…to ensure the dependencies are created first…so that we're not injecting null values into beans…that are bean created through this instantiation phase.…
The handle to each class instance…remains in the bean factory for the lifecycle…of the application for singleton beans.…Other scope beans have different ways…that they are managed, but for the most part,…a majority of your beans are going to be singletons,…so just remember that the bean factory itself…maintains the handle.…There are two ways that beans themselves…can be instantiated, eager or lazy.…By default, all beans are instantiated eagerly,…
AuthorFrank P Moley III
- Introduction to Spring
- Configuring the ApplicationContext
- Using the Spring expression language
- Configuring proxies
- Autowiring beans
- Using lifecycle methods
- Configuring beans with XML
- Understanding the initialization phases of the bean lifecycle
- Aspect-oriented programming and Spring
Skill Level Intermediate
Learning Spring with Spring Bootwith Frank P Moley III1h 38m Intermediate
1. Spring Overview
2. Configuring the Application Context
3. Annotation-Based Configuration
4. XML-Based Configuration
5. Bean Lifecycle
6. Aspect Oriented Programming
Next steps2m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.