This video explains the facilities to support operations that must occur after the context loads or before the context goes out of scope in a Spring application.
- [Instructor] There are oftentimes when writing code…that we need to execute some functionality…right after a class is constructed…or right before it is destroyed.…Though these are not the most common needs, they do exist.…In my experience, moving to cloud native applications…increases the need to execute cache warmers…and other performance-related options after startup…because you need the application itself to start quickly.…Spring provides facilities to support these behaviors…for these types of operations…when using Java configuration or auto configuration.…
These annotations are actually Java annotations…so not part of Spring per se,…but we will include them nonetheless.…One thing to note here…and we will discuss more about this…during the lifecycle chapter,…but during the application initialization phase,…you cannot leverage Spring or its proxies to do work.…You cannot for instance in a constructor…call a proxy data repository…or leverage a proxy cache provider.…You also cannot leverage Spring…after the application goes out of scope…
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 33m 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.