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.
Define aspect-oriented programming (AOP) pointcuts
From the course: Spring: Framework in Depth
Define aspect-oriented programming (AOP) pointcuts
- [Instructor] Pointcuts are the way a method or class is selected for execution of an aspect. So pointcuts select a join point, one thing to note is that the selection has a syntax all of its own. So let's talk about the pointcut syntax now a little bit. So essentially you have a designator, and then you have some parenthesis, and double quotes, and then there's some code letters here and an argument. So let's talk about these code letters. R is the return type. So you'll start to see that these are calling down to a method level which makes sense because that's ultimately what we're selecting is a method. Even if we select a class, we're drilling down to a method on that class. So, this can be a specific return type, or it can be a wild card. Package is much the same way. It is the package that the class exists in or again, a wildcard. C is the class, and you can wildcard in there as well. So if it's…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Aspecting in Spring4m 51s
-
(Locked)
Define aspect-oriented programming (AOP) pointcuts6m 6s
-
(Locked)
Implement AOP advice: Before5m 9s
-
(Locked)
Implement AOP advice: After2m 40s
-
(Locked)
Implement AOP advice: Around4m 40s
-
(Locked)
Challenge: Building your own aspect53s
-
(Locked)
Solution: Building your own aspect2m 41s
-
-