InterviewSolution
Saved Bookmarks
| 1. |
What Is A Named Pointcut? |
|
Answer» A named pointcut can be declared INSIDE an <aop:config> element, ENABLING the pointcut definition to be shared across SEVERAL ASPECTS and ADVISORS. <aop:config> <aop:pointcut id="businessService" expression="execution(* com.xyz.myapp.service.*.*(..))"/> </aop:config> A named pointcut can be declared inside an <aop:config> element, enabling the pointcut definition to be shared across several aspects and advisors. <aop:config> <aop:pointcut id="businessService" expression="execution(* com.xyz.myapp.service.*.*(..))"/> </aop:config> |
|