Hi
I have a very simple point cut, but the method return does not seem to be 
intercepted.
Is the syntax wrong ?

Thanks !

@Pointcut("within(com.mycom.mypack.myclass)")
               
public void withinMyPackage() {}
 
@AfterReturning(pointcut = "execution(public static *
myMethod ( .. ))  " +       
"  && withinMyPackage() "
,         returning = "myResult"        
)
public void provideAdviseAfterReturning(   MyType
myResult    , JoinPoint jp ) {
 
       // do something with
returned results
 
}
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to