I have
public interface MyInterface {
@DoProfile
void some();
}
and there're some classes that implement this interface.
I want to write an aspect (using Spring AOP) that will run around some() methods of all implementations of this interface.
Generally, I'd like to be able to mark any abstract or interface method with @DoProfile and have its implementations be wrapped with Around aspect.
Simple @Around("@annotation(DoProfile)") doesn't work. It works only when I put @DoProfile on concrete implementations. But I'd like to put @DoProfile to interface / abstract methods.
How to do that?