Kyle,
As you may know the annotations on methods are not inherited by
implementing or overriding methods. You could:
1. Use an execution pointcut designator, and then access the signature
and check for the annotation on the implementation method, and also
use a call pointcut designator for the calls on the interface method
and check on the annotation. You could use a variable to track if
the
annotation exists on either in your aspect.
Note: This may not be an option if you cannot use execution pointcut designator.
2 In adition to the code in MethodAnnotationAspect, you could use
thisJoinPoint.getTarget (I think this returns the object implementing
the interface) and then check the annotation.
Note: This is similar to 1 above except that it does not use the
execution pointcut designator.
3. you can use the target pointcut designator
http://www.eclipse.org/aspectj/doc/released/progguide/starting-aspectj.html#pointcutsMonal
http://www.goi18n.com/http://goi18n.com/_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users