Package org.apache.shiro.aop
Interface AnnotationResolver
-
- All Known Implementing Classes:
DefaultAnnotationResolver
public interface AnnotationResolver
Defines an AOP-framework-independent way of determining if an Annotation exists on a Method.- Since:
- 1.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Annotation
getAnnotation(MethodInvocation mi, Class<? extends Annotation> clazz)
Returns anAnnotation
instance of the specified type based on the givenMethodInvocation
argument, ornull
if no annotation of that type could be found.
-
-
-
Method Detail
-
getAnnotation
Annotation getAnnotation(MethodInvocation mi, Class<? extends Annotation> clazz)
Returns anAnnotation
instance of the specified type based on the givenMethodInvocation
argument, ornull
if no annotation of that type could be found. First checks the invoked method itself and if not found, then the class for the existence of the same annotation.- Parameters:
mi
- the intercepted method to be invoked.clazz
- the annotation class of the annotation to find.- Returns:
- the method's annotation of the specified type or
null
if no annotation of that type could be found.
-
-