A pointcut declaration includes a signature that includes a word with any parameters and a pointcut expression that specifies which action we want to view.
A pointcut expression specifies which base system and advises joinpoint executions should be used.
We'll also examine how the API representing a matched joinpoint during advice execution relates to pointcut expression constructions.
A pointcut is a set of joint points that define where advice should be applied.
In other terms, a pointcut is a collection of different join points.
"Where advice should be carried out," it says. Let's look at an example of how to utilize pointcut.
Assume there are numerous join points in the system where aspects should be applied.
We may use pointcut expression instead of applying aspects to each join point.
The @Pointcut annotation is used to declare a pointcut. It's in the org.AspectJ.lang. Annotation package.
Package of pointcuts.
There are two elements to a pointcut declaration: