Inheriting annotation for AOP in GUICE
问题 I'm using Guice and AspectJ, and I am trying to do some AOP to measure the execution time of certain methods. I have this annotation which will be used to annotate all the methods I need to measure: @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) @Inherited public @interface MyStopWatch { } I have this method interceptor: public class MyInterceptor implements org.aopalliance.intercept.MethodInterceptor { private final Logger logger = LoggerFactory.getLogger(MyInterceptor.class