Package org.jboss.weld.bean.attributes
Class ExternalBeanAttributesFactory
- java.lang.Object
-
- org.jboss.weld.bean.attributes.ExternalBeanAttributesFactory
-
public class ExternalBeanAttributesFactory extends Object
CreatesBeanAttributes
based on BeanAttributes provided by an extension. This class handles creating a safe copy as well as basic validation of providedBeanAttributes
.- Author:
- Jozef Hartinger, Marko Luksa
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> javax.enterprise.inject.spi.BeanAttributes<T>
of(javax.enterprise.inject.spi.BeanAttributes<T> source, javax.enterprise.inject.spi.BeanManager manager)
static void
validateBeanAttributes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
ValidatesBeanAttributes
.static void
validateQualifiers(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
static void
validateScope(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
static void
validateStereotypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
static void
validateTypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
-
-
-
Method Detail
-
of
public static <T> javax.enterprise.inject.spi.BeanAttributes<T> of(javax.enterprise.inject.spi.BeanAttributes<T> source, javax.enterprise.inject.spi.BeanManager manager)
- Parameters:
source
- sourceBeanAttributes
.- Returns:
- a safe copy of source
BeanAttributes
.
-
validateBeanAttributes
public static void validateBeanAttributes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
ValidatesBeanAttributes
.- Parameters:
attributes
-BeanAttributes
to validate
-
validateStereotypes
public static void validateStereotypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
-
validateQualifiers
public static void validateQualifiers(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
-
validateTypes
public static void validateTypes(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
-
validateScope
public static void validateScope(javax.enterprise.inject.spi.BeanAttributes<?> attributes, javax.enterprise.inject.spi.BeanManager manager)
-
-