Interface BeanAttributesConfigurator<T>
- 
- Type Parameters:
- T- the class of the bean instance
 
 public interface BeanAttributesConfigurator<T>This API is an helper to configure a newBeanAttributesinstance. CDI container must provides an implementation of this interface. This configurator is not thread safe and shall not be used concurrently.CDI Lite implementations are not required to provide support for Portable Extensions. - Since:
- 2.0
- Author:
- Antoine Sabot-Durand
- See Also:
- ProcessBeanAttributes.configureBeanAttributes()
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract 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(TypeLiteral<?> typeLiteral)Add a type to the bean typesBeanAttributesConfigurator<T>addType(Type type)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 value)Change the alternative status of the configured bean.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>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
 
- 
- 
- 
Method Detail- 
addTypeBeanAttributesConfigurator<T> addType(Type type) Add a type to the bean types- Parameters:
- type- the type to add
- Returns:
- self
 
 - 
addTypeBeanAttributesConfigurator<T> addType(TypeLiteral<?> typeLiteral) Add a type to the bean types- Parameters:
- typeLiteral- the type to add
- Returns:
- self
 
 - 
addTypesBeanAttributesConfigurator<T> addTypes(Type... types) Add types to the bean types- Parameters:
- types- types to add
- Returns:
- self
 
 - 
addTypesBeanAttributesConfigurator<T> addTypes(Set<Type> types) Add types to the bean types- Parameters:
- types- types to add
- Returns:
- self
 
 - 
addTransitiveTypeClosureBeanAttributesConfigurator<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. Illegal bean types are omitted.- Parameters:
- type- to build the closure from
- Returns:
- self
 
 - 
typesBeanAttributesConfigurator<T> types(Type... types) Replace bean types- Parameters:
- types- the types of the configured bean
- Returns:
- self
 
 - 
typesBeanAttributesConfigurator<T> types(Set<Type> types) Replace bean types- Parameters:
- types- the types of the configured bean
- Returns:
- self
 
 - 
scopeBeanAttributesConfigurator<T> scope(Class<? extends Annotation> scope) Replace Bean scope- Parameters:
- scope- new scope for the configured bean
- Returns:
- self
 
 - 
addQualifierBeanAttributesConfigurator<T> addQualifier(Annotation qualifier) Add a qualifier to the configured bean- Parameters:
- qualifier- qualifier to add
- Returns:
- self
 
 - 
addQualifiersBeanAttributesConfigurator<T> addQualifiers(Annotation... qualifiers) Add qualifiers to the bean.- Parameters:
- qualifiers- qualifiers to add
- Returns:
- self
 
 - 
addQualifiersBeanAttributesConfigurator<T> addQualifiers(Set<Annotation> qualifiers) Add qualifiers to the bean.- Parameters:
- qualifiers- qualifiers to add
- Returns:
- self
 
 - 
qualifiersBeanAttributesConfigurator<T> qualifiers(Annotation... qualifiers) Replace all qualifiers.- Parameters:
- qualifiers- qualifiers for the build bean
- Returns:
- self
 
 - 
qualifiersBeanAttributesConfigurator<T> qualifiers(Set<Annotation> qualifiers) Replace all qualifiers.- Parameters:
- qualifiers- for the configured bean
- Returns:
- self
 
 - 
addStereotypeBeanAttributesConfigurator<T> addStereotype(Class<? extends Annotation> stereotype) Add a stereotype to the configured bean- Parameters:
- stereotype- stereotype to add
- Returns:
- self
 
 - 
addStereotypesBeanAttributesConfigurator<T> addStereotypes(Set<Class<? extends Annotation>> stereotypes) Add stereotypes to the configured bean- Parameters:
- stereotypes- stereotypes to add
- Returns:
- self
 
 - 
stereotypesBeanAttributesConfigurator<T> stereotypes(Set<Class<? extends Annotation>> stereotypes) Replace stereotypes on the configured bean- Parameters:
- stereotypes- for the configured bean
- Returns:
- self
 
 - 
nameBeanAttributesConfigurator<T> name(String name) Set the name of the configured bean- Parameters:
- name- name for the configured bean
- Returns:
- self
 
 - 
alternativeBeanAttributesConfigurator<T> alternative(boolean value) Change the alternative status of the configured bean. By default the configured bean is not an alternative.- Parameters:
- value- value for alternative property
- Returns:
- self
 
 
- 
 
-