Consider the following situation:
class A() {
void a();
}
@MyAnnotation
class B extends A {
void b();
}
I want to advice all methods of all classes annotated with @MyAnnotation (i.e B.a()). That's pretty easy task due to the possibility of using @target pointcut expression. BUT! in that case all beans in a container (even unsuitable) will be Proxified what is unacceptable.
Now the question: Is it possible to build up pointcut expressino without @target but with the same effect?