Du kannst nicht mehr als 25 Themen auswählen
Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
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());
- }
-
- }
|