public class AnnotationIntrospector extends Object
| Constructor and Description |
|---|
AnnotationIntrospector() |
| Modifier and Type | Method and Description |
|---|---|
static <A extends Annotation> |
resolveClassAnnotations(Class<?> clazz,
Class<A> classAnnotation)
Resolve an annotation of the specified class and its inheritance hierarchy.
|
static <A extends Annotation> |
resolveMethodAnnotations(Class<?> clazz,
Class<A> methodAnnotation) |
public static <A extends Annotation> A resolveClassAnnotations(Class<?> clazz, Class<A> classAnnotation) throws IllegalArgumentException
A - the annotation classclazz - the examined classclassAnnotation - the annotation to lookupIllegalArgumentException - if any argument is nullpublic static <A extends Annotation> Map<Method,A> resolveMethodAnnotations(Class<?> clazz, Class<A> methodAnnotation)
Copyright © 2016 eXo Platform SAS. All Rights Reserved.