Class BeanAttributesConfiguratorImpl<T>
- java.lang.Object
-
- org.jboss.weld.bootstrap.events.configurator.BeanAttributesConfiguratorImpl<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
BeanAttributesConfigurator<T>,Configurator<BeanAttributes<T>>
public class BeanAttributesConfiguratorImpl<T> extends Object implements BeanAttributesConfigurator<T>, Configurator<BeanAttributes<T>>
- Author:
- Martin Kouba
-
-
Constructor Summary
Constructors Constructor Description BeanAttributesConfiguratorImpl(BeanAttributes<T> beanAttributes, BeanManagerImpl beanManager)BeanAttributesConfiguratorImpl(BeanManagerImpl beanManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanAttributesConfigurator<T>addQualifier(Annotation qualifier)Add a qualifier to the configured beanBeanAttributesConfigurator<T>addQualifiers(Annotation... qualifiers)Add qualifiers to the bean.BeanAttributesConfigurator<T>addQualifiers(Set<Annotation> qualifiers)Add qualifiers to the bean.BeanAttributesConfigurator<T>addStereotype(Class<? extends Annotation> stereotype)Add a stereotype to the configured beanBeanAttributesConfigurator<T>addStereotypes(Set<Class<? extends Annotation>> stereotypes)Add stereotypes to the configured beanBeanAttributesConfigurator<T>addTransitiveTypeClosure(Type type)Adds an unrestricted set of bean types for the given type as if it represented a bean class of a managed bean.BeanAttributesConfigurator<T>addType(Type type)Add a type to the bean typesBeanAttributesConfigurator<T>addType(TypeLiteral<?> typeLiteral)Add a type to the bean typesBeanAttributesConfigurator<T>addTypes(Type... types)Add types to the bean typesBeanAttributesConfigurator<T>addTypes(Set<Type> types)Add types to the bean typesBeanAttributesConfigurator<T>alternative(boolean alternative)Change the alternative status of the configured bean.BeanAttributes<T>complete()Returns a finished component.BeanAttributesConfigurator<T>name(String name)Set the name of the configured beanBeanAttributesConfigurator<T>qualifiers(Annotation... qualifiers)Replace all qualifiers.BeanAttributesConfigurator<T>qualifiers(Set<Annotation> qualifiers)Replace all qualifiers.BeanAttributesConfigurator<T>read(BeanAttributes<?> beanAttributes)BeanAttributesConfigurator<T>scope(Class<? extends Annotation> scope)Replace Bean scopeBeanAttributesConfigurator<T>stereotypes(Set<Class<? extends Annotation>> stereotypes)Replace stereotypes on the configured beanBeanAttributesConfigurator<T>types(Type... types)Replace bean typesBeanAttributesConfigurator<T>types(Set<Type> types)Replace bean types
-
-
-
Constructor Detail
-
BeanAttributesConfiguratorImpl
public BeanAttributesConfiguratorImpl(BeanManagerImpl beanManager)
-
BeanAttributesConfiguratorImpl
public BeanAttributesConfiguratorImpl(BeanAttributes<T> beanAttributes, BeanManagerImpl beanManager)
- Parameters:
beanAttributes-
-
-
Method Detail
-
read
public BeanAttributesConfigurator<T> read(BeanAttributes<?> beanAttributes)
-
addType
public BeanAttributesConfigurator<T> addType(Type type)
Description copied from interface:BeanAttributesConfiguratorAdd a type to the bean types- Specified by:
addTypein interfaceBeanAttributesConfigurator<T>- Parameters:
type- the type to add- Returns:
- self
-
addType
public BeanAttributesConfigurator<T> addType(TypeLiteral<?> typeLiteral)
Description copied from interface:BeanAttributesConfiguratorAdd a type to the bean types- Specified by:
addTypein interfaceBeanAttributesConfigurator<T>- Parameters:
typeLiteral- the type to add- Returns:
- self
-
addTypes
public BeanAttributesConfigurator<T> addTypes(Type... types)
Description copied from interface:BeanAttributesConfiguratorAdd types to the bean types- Specified by:
addTypesin interfaceBeanAttributesConfigurator<T>- Parameters:
types- types to add- Returns:
- self
-
addTypes
public BeanAttributesConfigurator<T> addTypes(Set<Type> types)
Description copied from interface:BeanAttributesConfiguratorAdd types to the bean types- Specified by:
addTypesin interfaceBeanAttributesConfigurator<T>- Parameters:
types- types to add- Returns:
- self
-
addTransitiveTypeClosure
public BeanAttributesConfigurator<T> addTransitiveTypeClosure(Type type)
Description copied from interface:BeanAttributesConfiguratorAdds an unrestricted set of bean types for the given type as if it represented a bean class of a managed bean. Illegal bean types are omitted.- Specified by:
addTransitiveTypeClosurein interfaceBeanAttributesConfigurator<T>- Parameters:
type- to build the closure from- Returns:
- self
-
types
public BeanAttributesConfigurator<T> types(Type... types)
Description copied from interface:BeanAttributesConfiguratorReplace bean types- Specified by:
typesin interfaceBeanAttributesConfigurator<T>- Parameters:
types- the types of the configured bean- Returns:
- self
-
types
public BeanAttributesConfigurator<T> types(Set<Type> types)
Description copied from interface:BeanAttributesConfiguratorReplace bean types- Specified by:
typesin interfaceBeanAttributesConfigurator<T>- Parameters:
types- the types of the configured bean- Returns:
- self
-
scope
public BeanAttributesConfigurator<T> scope(Class<? extends Annotation> scope)
Description copied from interface:BeanAttributesConfiguratorReplace Bean scope- Specified by:
scopein interfaceBeanAttributesConfigurator<T>- Parameters:
scope- new scope for the configured bean- Returns:
- self
-
addQualifier
public BeanAttributesConfigurator<T> addQualifier(Annotation qualifier)
Description copied from interface:BeanAttributesConfiguratorAdd a qualifier to the configured bean- Specified by:
addQualifierin interfaceBeanAttributesConfigurator<T>- Parameters:
qualifier- qualifier to add- Returns:
- self
-
addQualifiers
public BeanAttributesConfigurator<T> addQualifiers(Annotation... qualifiers)
Description copied from interface:BeanAttributesConfiguratorAdd qualifiers to the bean.- Specified by:
addQualifiersin interfaceBeanAttributesConfigurator<T>- Parameters:
qualifiers- qualifiers to add- Returns:
- self
-
addQualifiers
public BeanAttributesConfigurator<T> addQualifiers(Set<Annotation> qualifiers)
Description copied from interface:BeanAttributesConfiguratorAdd qualifiers to the bean.- Specified by:
addQualifiersin interfaceBeanAttributesConfigurator<T>- Parameters:
qualifiers- qualifiers to add- Returns:
- self
-
qualifiers
public BeanAttributesConfigurator<T> qualifiers(Annotation... qualifiers)
Description copied from interface:BeanAttributesConfiguratorReplace all qualifiers.- Specified by:
qualifiersin interfaceBeanAttributesConfigurator<T>- Parameters:
qualifiers- qualifiers for the build bean- Returns:
- self
-
qualifiers
public BeanAttributesConfigurator<T> qualifiers(Set<Annotation> qualifiers)
Description copied from interface:BeanAttributesConfiguratorReplace all qualifiers.- Specified by:
qualifiersin interfaceBeanAttributesConfigurator<T>- Parameters:
qualifiers- for the configured bean- Returns:
- self
-
addStereotype
public BeanAttributesConfigurator<T> addStereotype(Class<? extends Annotation> stereotype)
Description copied from interface:BeanAttributesConfiguratorAdd a stereotype to the configured bean- Specified by:
addStereotypein interfaceBeanAttributesConfigurator<T>- Parameters:
stereotype- stereotype to add- Returns:
- self
-
addStereotypes
public BeanAttributesConfigurator<T> addStereotypes(Set<Class<? extends Annotation>> stereotypes)
Description copied from interface:BeanAttributesConfiguratorAdd stereotypes to the configured bean- Specified by:
addStereotypesin interfaceBeanAttributesConfigurator<T>- Parameters:
stereotypes- stereotypes to add- Returns:
- self
-
stereotypes
public BeanAttributesConfigurator<T> stereotypes(Set<Class<? extends Annotation>> stereotypes)
Description copied from interface:BeanAttributesConfiguratorReplace stereotypes on the configured bean- Specified by:
stereotypesin interfaceBeanAttributesConfigurator<T>- Parameters:
stereotypes- for the configured bean- Returns:
- self
-
name
public BeanAttributesConfigurator<T> name(String name)
Description copied from interface:BeanAttributesConfiguratorSet the name of the configured bean- Specified by:
namein interfaceBeanAttributesConfigurator<T>- Parameters:
name- name for the configured bean- Returns:
- self
-
alternative
public BeanAttributesConfigurator<T> alternative(boolean alternative)
Description copied from interface:BeanAttributesConfiguratorChange the alternative status of the configured bean. By default the configured bean is not an alternative.- Specified by:
alternativein interfaceBeanAttributesConfigurator<T>- Parameters:
alternative- value for alternative property- Returns:
- self
-
complete
public BeanAttributes<T> complete()
Description copied from interface:ConfiguratorReturns a finished component.- Specified by:
completein interfaceConfigurator<T>- Returns:
- a finished component
-
-