protected final void bindShiroInterceptorWithHierarchy ( final AnnotationMethodInterceptor methodInterceptor ) { bindInterceptor ( Matchers . any ( ) , new AbstractMatcher < Method > ( ) { public boolean matches ( final Method method ) { final Class < ? extends Annotation > annotation = methodInterceptor . getHandler ( ) . getAnnotationClass ( ) ; return resolver . getAnnotationFromMethod ( method , annotation ) != null ; } } , new AopAllianceMethodInterceptorAdapter ( methodInterceptor ) ) ; }
Similar to bindShiroInterceptor but will look for annotations in the class hierarchy