public class Beans extends Object
Modifier and Type | Method and Description |
---|---|
static Set<Annotation> |
buildQualifiers(Set<Annotation> annotations)
Returns a new set with @Default and @Any added as needed
|
static void |
checkReturnValue(Object instance,
javax.enterprise.inject.spi.Bean<?> bean,
javax.enterprise.inject.spi.InjectionPoint injectionPoint,
javax.enterprise.inject.spi.BeanManager beanManager) |
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.
|
public static Set<Annotation> buildQualifiers(Set<Annotation> annotations)
public static void checkReturnValue(Object instance, javax.enterprise.inject.spi.Bean<?> bean, javax.enterprise.inject.spi.InjectionPoint injectionPoint, javax.enterprise.inject.spi.BeanManager beanManager)
public 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 © 2014 JBoss, a division of Red Hat. All Rights Reserved.