@Typed public abstract class BeanUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <X> List<javax.enterprise.inject.spi.InjectionPoint> |
createInjectionPoints(javax.enterprise.inject.spi.AnnotatedMethod<X> method,
javax.enterprise.inject.spi.Bean<?> declaringBean,
javax.enterprise.inject.spi.BeanManager beanManager)
Given a method, and the bean on which the method is declared, create a
collection of injection points representing the parameters of the method.
|
static <T extends java.lang.annotation.Annotation> |
extractAnnotation(javax.enterprise.inject.spi.Annotated annotated,
Class<T> targetType) |
static Set<java.lang.annotation.Annotation> |
getQualifiers(javax.enterprise.inject.spi.BeanManager beanManager,
java.lang.annotation.Annotation[]... annotations)
Extract the qualifiers from a set of annotations.
|
static Set<java.lang.annotation.Annotation> |
getQualifiers(javax.enterprise.inject.spi.BeanManager beanManager,
Iterable<java.lang.annotation.Annotation> annotations)
Extract the qualifiers from a set of annotations.
|
public static Set<java.lang.annotation.Annotation> getQualifiers(javax.enterprise.inject.spi.BeanManager beanManager, Iterable<java.lang.annotation.Annotation> annotations)
beanManager - the beanManager to use to determine if an annotation is
a qualifierannotations - the annotations to checkannotationspublic static Set<java.lang.annotation.Annotation> getQualifiers(javax.enterprise.inject.spi.BeanManager beanManager, java.lang.annotation.Annotation[]... annotations)
beanManager - the beanManager to use to determine if an annotation is
a qualifierannotations - the annotations to checkannotationspublic static <T extends java.lang.annotation.Annotation> T extractAnnotation(javax.enterprise.inject.spi.Annotated annotated, Class<T> targetType)
T - type of the Annotation which get searchedannotated - element to search intargetType - target type to search forpublic static <X> List<javax.enterprise.inject.spi.InjectionPoint> createInjectionPoints(javax.enterprise.inject.spi.AnnotatedMethod<X> method, javax.enterprise.inject.spi.Bean<?> declaringBean, javax.enterprise.inject.spi.BeanManager beanManager)
X - the type declaring the methodmethod - the methoddeclaringBean - the bean on which the method is declaredbeanManager - the bean manager to use to create the injection pointsCopyright © 2015 The Apache Software Foundation. All rights reserved.