Class SpringAnnotationResolver

  • All Implemented Interfaces:
    org.apache.shiro.aop.AnnotationResolver

    public class SpringAnnotationResolver
    extends Object
    implements org.apache.shiro.aop.AnnotationResolver
    AnnotationResolver implementation that uses Spring's more robust AnnotationUtils to find method annotations instead of the JDKs simpler (and rather lacking) Method.getAnnotation(class) implementation.
    Since:
    1.1
    • Constructor Detail

      • SpringAnnotationResolver

        public SpringAnnotationResolver()
    • Method Detail

      • getAnnotation

        public Annotation getAnnotation​(org.apache.shiro.aop.MethodInvocation mi,
                                        Class<? extends Annotation> clazz)
        Specified by:
        getAnnotation in interface org.apache.shiro.aop.AnnotationResolver