-
Dec 1st, 2009, 06:36 AM
#1
Advice not executed when method is invoked within same interface
I have implemented an aspect that advices a an interface implementation method. Method is adviced as expected when it it is invoked from another service but it is not when it is directly called from another method declared in the same interface.
Aspect is declared with the following advice rule:
@Around("execution(* package.interface.method(..)) && args(parameter,..)")
If I invoke interface.method from another interface, the advice is executed. If I invoke interface.method from interface.method2, then it is not.
I've tried enabling CGLIB2 proxys getting the same behaviour.
Is anything wrong with the pointcut expressiong I've declared?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules