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> BeanAttributes<T>
of(BeanAttributes<T> source, BeanManager manager)
static void
validateBeanAttributes(BeanAttributes<?> attributes, BeanManager manager)
ValidatesBeanAttributes
.static void
validateQualifiers(BeanAttributes<?> attributes, BeanManager manager)
static void
validateScope(BeanAttributes<?> attributes, BeanManager manager)
static void
validateStereotypes(BeanAttributes<?> attributes, BeanManager manager)
static void
validateTypes(BeanAttributes<?> attributes, BeanManager manager)
-
-
-
Method Detail
-
of
public static <T> BeanAttributes<T> of(BeanAttributes<T> source, BeanManager manager)
- Parameters:
source
- sourceBeanAttributes
.- Returns:
- a safe copy of source
BeanAttributes
.
-
validateBeanAttributes
public static void validateBeanAttributes(BeanAttributes<?> attributes, BeanManager manager)
ValidatesBeanAttributes
.- Parameters:
attributes
-BeanAttributes
to validate
-
validateStereotypes
public static void validateStereotypes(BeanAttributes<?> attributes, BeanManager manager)
-
validateQualifiers
public static void validateQualifiers(BeanAttributes<?> attributes, BeanManager manager)
-
validateTypes
public static void validateTypes(BeanAttributes<?> attributes, BeanManager manager)
-
validateScope
public static void validateScope(BeanAttributes<?> attributes, BeanManager manager)
-
-