Module jakarta.cdi
Interface BeanAttributesConfigurator<T>
- Type Parameters:
T
- the class of the bean instance
public interface BeanAttributesConfigurator<T>
This API is an helper to configure a new
BeanAttributes
instance.
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
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddQualifier
(Annotation qualifier) Add a qualifier to the configured beanaddQualifiers
(Annotation... qualifiers) Add qualifiers to the bean.addQualifiers
(Set<Annotation> qualifiers) Add qualifiers to the bean.addStereotype
(Class<? extends Annotation> stereotype) Add a stereotype to the configured beanaddStereotypes
(Set<Class<? extends Annotation>> stereotypes) Add stereotypes to the configured beanaddTransitiveTypeClosure
(Type type) Adds an unrestricted set of bean types for the given type as if it represented a bean class of a managed bean.addType
(TypeLiteral<?> typeLiteral) Add a type to the bean typesAdd a type to the bean typesAdd types to the bean typesAdd types to the bean typesalternative
(boolean value) Change the alternative status of the configured bean.Set the name of the configured beanqualifiers
(Annotation... qualifiers) Replace all qualifiers.qualifiers
(Set<Annotation> qualifiers) Replace all qualifiers.scope
(Class<? extends Annotation> scope) Replace Bean scopestereotypes
(Set<Class<? extends Annotation>> stereotypes) Replace stereotypes on the configured beanReplace bean typesReplace bean types
-
Method Details
-
addType
Add a type to the bean types- Parameters:
type
- the type to add- Returns:
- self
-
addType
Add a type to the bean types- Parameters:
typeLiteral
- the type to add- Returns:
- self
-
addTypes
Add types to the bean types- Parameters:
types
- types to add- Returns:
- self
-
addTypes
Add types to the bean types- Parameters:
types
- types to add- Returns:
- self
-
addTransitiveTypeClosure
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
-
types
Replace bean types- Parameters:
types
- the types of the configured bean- Returns:
- self
-
types
Replace bean types- Parameters:
types
- the types of the configured bean- Returns:
- self
-
scope
Replace Bean scope- Parameters:
scope
- new scope for the configured bean- Returns:
- self
-
addQualifier
Add a qualifier to the configured bean- Parameters:
qualifier
- qualifier to add- Returns:
- self
-
addQualifiers
Add qualifiers to the bean.- Parameters:
qualifiers
- qualifiers to add- Returns:
- self
-
addQualifiers
Add qualifiers to the bean.- Parameters:
qualifiers
- qualifiers to add- Returns:
- self
-
qualifiers
Replace all qualifiers.- Parameters:
qualifiers
- qualifiers for the build bean- Returns:
- self
-
qualifiers
Replace all qualifiers.- Parameters:
qualifiers
- for the configured bean- Returns:
- self
-
addStereotype
Add a stereotype to the configured bean- Parameters:
stereotype
- stereotype to add- Returns:
- self
-
addStereotypes
Add stereotypes to the configured bean- Parameters:
stereotypes
- stereotypes to add- Returns:
- self
-
stereotypes
Replace stereotypes on the configured bean- Parameters:
stereotypes
- for the configured bean- Returns:
- self
-
name
Set the name of the configured bean- Parameters:
name
- name for the configured bean- Returns:
- self
-
alternative
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
-