June 2018
Intermediate to advanced
408 pages
11h 23m
English
As we learned before, pointcuts define a point where advice should be applied. Spring AOP uses AspectJ's expression language to define a point where advice should be applied. The following are the set of pointcut designators supported in Spring AOP:
|
Designator |
Description |
| execution | It restricts matching to join points by a method execution. |
| within |
It restricts matching to join points within certain types only. Example: within(com.packt.springhighperformance.ch3.TransferService). |
| args |
It restricts matching to join points where arguments are of the given type. Example: args(account,..). |
| this |
It restricts matching to join points where the bean reference or Spring proxy object is an instance of the given ... |
Read now
Unlock full access