This video introduces the syntax for writing pointcuts when using aspect-oriented programming with Spring. In addition, build a pointcut to select a joinpoint that is annotated by a custom annotation.
- [Instructor] As we previously discussed,…the pointcut is the expression that is used to identify…the selection criteria of the joinpoint.…Writing pointcuts is straight-forward,…however it can be confusing at first.…The basic syntax of a pointcut is shown, here.…There's a designator which I will spend some time…giving you common examples of.…You then need to specify the package class and method.…Each of these values can be replaced with wildcards…to select groups of joinpoints.…
This, however, is based on the selection of the designator.…Finally, you can specify zero or more arguments,…again, through the use of wildcards.…When writing pointcuts in advice,…there are several designators that can be leveraged.…Each use-case is different and you should look…at the Spring documentation or the AspectJ documentation…to help you to make your choice.…Keep in mind, however, that Spring does not support…the full AspectJ offerings, but instead…only a subset of them.…
I am listing the most common ones from my experience.…
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?
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.