1 2 3 4 5 6 7 8 9 10 11
aspect MyAspect implements MyInterface<MyClass> { before() : MyAspect1<MyClass>.myPointcutInInterface(){ } } class MyClass { } interface MyInterface<T>{ public abstract static aspect MyAspect1<T> { public final pointcut myPointcutInInterface() : call(* *..*.*(..)); } }