public class AnnotationHierarchicalResolver
extends java.lang.Object
implements org.apache.shiro.aop.AnnotationResolver
| Constructor and Description |
|---|
AnnotationHierarchicalResolver() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends java.lang.annotation.Annotation> |
findAnnotation(java.lang.reflect.Method method,
java.lang.Class<A> annotationType)
Get a single
Annotation of annotationType from the supplied Method,
traversing its super methods if no annotation can be found on the given method itself. |
static <A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.reflect.Method method,
java.lang.Class<A> annotationType)
Get a single
Annotation of annotationType from the supplied Method. |
java.lang.annotation.Annotation |
getAnnotation(org.apache.shiro.aop.MethodInvocation mi,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz) |
java.lang.annotation.Annotation |
getAnnotationFromMethod(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz) |
public java.lang.annotation.Annotation getAnnotation(org.apache.shiro.aop.MethodInvocation mi,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
getAnnotation in interface org.apache.shiro.aop.AnnotationResolverpublic java.lang.annotation.Annotation getAnnotationFromMethod(java.lang.reflect.Method method,
java.lang.Class<? extends java.lang.annotation.Annotation> clazz)
public static <A extends java.lang.annotation.Annotation> A findAnnotation(java.lang.reflect.Method method,
java.lang.Class<A> annotationType)
Annotation of annotationType from the supplied Method,
traversing its super methods if no annotation can be found on the given method itself.
Annotations on methods are not inherited by default, so we need to handle this explicitly.
method - the method to look for annotations onannotationType - the annotation class to look fornull if none foundpublic static <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.reflect.Method method,
java.lang.Class<A> annotationType)
Annotation of annotationType from the supplied Method.method - the method to look for annotations onannotationType - the annotation class to look forCopyright © 2010-2020. All Rights Reserved.