public final class AnnotationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
doesMethodHierarchyContainAnnotation(Method readMethod,
Class<? extends Annotation> annotation)
Test if the given annotation exists on any implementation of the method.
|
static Set<Class<?>> |
extractInterfaceContainingAnnotation(Object bean,
Class<? extends Annotation> annotation)
Extract the set of java interfaces from the class hierarchy of the bean provided that match the annotation provided.
|
public static Set<Class<?>> extractInterfaceContainingAnnotation(Object bean, Class<? extends Annotation> annotation)
bean
- annotation
- public static boolean doesMethodHierarchyContainAnnotation(Method readMethod, Class<? extends Annotation> annotation)
readMethod
- the method to evaluateannotation
- the annotation to look forCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.