You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
123456789101112131415 |
- import java.lang.annotation.Annotation;
-
- public abstract aspect GenericAnnotation<A extends Annotation> {
-
- pointcut annotatedCall(A a) : call(@A * *.*(..)) && @annotation(a);
-
- before(A a) : annotatedCall(a) {
- System.err.println("Reference pointcut advice. "+a.annotationType());
- }
-
- before(A a) : call(@A * *.*(..)) && @annotation(a) {
- System.err.println("Inlined pointcut advice. "+a.annotationType());
- }
-
- }
|