|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.weld.extensions.reflection.AnnotationInspector
public class AnnotationInspector
Inspect an AnnotatedElement or Annotated to obtain it's meta
annotations and annotations, taking into account stereotypes.
| Method Summary | ||
|---|---|---|
static
|
getAnnotation(AnnotatedElement element,
Class<A> annotationType,
boolean metaAnnotation,
javax.enterprise.inject.spi.BeanManager beanManager)
Inspect AnnoatedElement element for a specific type of annotation. |
|
static Set<Annotation> |
getAnnotations(javax.enterprise.inject.spi.Annotated element,
Class<? extends Annotation> metaAnnotationType)
Inspects an annotated element for any annotations with the given meta annotation. |
|
static
|
getMetaAnnotation(javax.enterprise.inject.spi.Annotated element,
Class<A> annotationType)
Inspects an annotated element for the given meta annotation. |
|
static boolean |
isAnnotationPresent(AnnotatedElement element,
Class<? extends Annotation> annotationType,
boolean metaAnnotation,
javax.enterprise.inject.spi.BeanManager beanManager)
Discover if a AnnotatedElement element has been annotated with annotationType. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean isAnnotationPresent(AnnotatedElement element,
Class<? extends Annotation> annotationType,
boolean metaAnnotation,
javax.enterprise.inject.spi.BeanManager beanManager)
Stereotype and the CDI SPI.
element - The element to inspect.annotationType - metaAnnotation - Whether the annotation may be used as a
meta-annotation or not
IllegalArgumentException - if element or annotationType is null
public static <A extends Annotation> A getAnnotation(AnnotatedElement element,
Class<A> annotationType,
boolean metaAnnotation,
javax.enterprise.inject.spi.BeanManager beanManager)
Stereotype and the CDI SPI.
element - The element to inspectannotationType - The annotation type to check formetaAnnotation - Whether the annotation may be used as a
meta-annotation or not
IllegalArgumentException - if element or annotationType is null
public static <A extends Annotation> A getMetaAnnotation(javax.enterprise.inject.spi.Annotated element,
Class<A> annotationType)
element - The element to inspectannotationType - The meta annotation to search for
public static Set<Annotation> getAnnotations(javax.enterprise.inject.spi.Annotated element,
Class<? extends Annotation> metaAnnotationType)
element - The element to inspectannotationType - The meta annotation to search for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||