I need to instrument all methods, which implement an interface that itself is annotated. Consider such an example:
@WebService
interface HelloWorld {
void hello();
}
class HelloWorldImpl implements HelloWorld {
void hello() {...}
void goodBye() {...}
}
Here I need to have an advice around hello, because it is declared by an interface with @WebService annotation. Is it possible to build such a ButeBuddy matcher?