I want to execute a execute method in a specific package.
What could be a possible pointcut for this?
Note: I am using @AspectJ style Spring AOP.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a look here http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations-pointcuts-and-advice.html
So you should have the following aop config:
and matching bean for this advice
Interceptor should implement org.aopalliance.intercept.MethodInterceptor