public interface AnnotationResolver
Modifier and Type | Method and Description |
---|---|
Annotation |
getAnnotation(MethodInvocation mi,
Class<? extends Annotation> clazz)
Returns an
Annotation instance of the specified type based on the given
MethodInvocation argument, or null if no annotation
of that type could be found. |
Annotation getAnnotation(MethodInvocation mi, Class<? extends Annotation> clazz)
Annotation
instance of the specified type based on the given
MethodInvocation
argument, or null
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.mi
- the intercepted method to be invoked.clazz
- the annotation class of the annotation to find.null
if no annotation of
that type could be found.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.