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

Define aspect-oriented programming (AOP) pointcuts

From the course: Spring: Framework in Depth

Start my 1-month free trial

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…

Contents