This video describes proxies or aspected behavior in the Spring Framework and how they can be used to your advantage. In addition, some of the caveats of working with code that is proxied at runtime are discussed.
- [Instructor] A significant portion of Spring…is based on aspecting.…As such, proxies, and their behavior,…can impact the running of your application.…And if you were not aware of this behavior, it can bite you.…So let's start the discussion with what proxies are.…Proxies are aspects.…These aspects add various behaviors to your class.…Many of the common proxies…include transaction management and caching.…Custom aspects can be written…with which we will discuss later.…
They can also add behavior to classes through these proxies.…Since Spring 4.0, every class you load into the bean factory…gets at least one proxy.…Now as I mentioned,…these proxies add behavior to your classes during runtime.…Spring leverages two primary mechanisms for proxies:…the JDK-based proxies which leverage an interface model,…and the CGLIB-based proxies which leverage a subclass model.…
Now their behaviors are slightly different at runtime,…but the average use case isn't impacted,…so we'll leave that for another discussion.…The fact the proxies are used all throughout Spring…
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.