T
- the class of the bean instancepublic interface BeanAttributesConfigurator<T>
BeanAttributes
instance.
CDI container must provides an implementation of this interface.
This configurator is not thread safe and shall not be used concurrently.ProcessBeanAttributes.configureBeanAttributes()
Modifier and Type | Method and Description |
---|---|
BeanAttributesConfigurator<T> |
addQualifier(java.lang.annotation.Annotation qualifier)
Add a qualifier to the configured bean
|
BeanAttributesConfigurator<T> |
addQualifiers(java.lang.annotation.Annotation... qualifiers)
Add qualifiers to the bean.
|
BeanAttributesConfigurator<T> |
addQualifiers(java.util.Set<java.lang.annotation.Annotation> qualifiers)
Add qualifiers to the bean.
|
BeanAttributesConfigurator<T> |
addStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
Add a stereotype to the configured bean
|
BeanAttributesConfigurator<T> |
addStereotypes(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> stereotypes)
Add stereotypes to the configured bean
|
BeanAttributesConfigurator<T> |
addTransitiveTypeClosure(java.lang.reflect.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(java.lang.reflect.Type type)
Add a type to the bean types
|
BeanAttributesConfigurator<T> |
addType(TypeLiteral<?> typeLiteral)
Add a type to the bean types
|
BeanAttributesConfigurator<T> |
addTypes(java.util.Set<java.lang.reflect.Type> types)
Add types to the bean types
|
BeanAttributesConfigurator<T> |
addTypes(java.lang.reflect.Type... types)
Add types to the bean types
|
BeanAttributesConfigurator<T> |
alternative(boolean value)
Change the alternative status of the configured bean.
|
BeanAttributesConfigurator<T> |
name(java.lang.String name)
Set the name of the configured bean
|
BeanAttributesConfigurator<T> |
qualifiers(java.lang.annotation.Annotation... qualifiers)
Replace all qualifiers.
|
BeanAttributesConfigurator<T> |
qualifiers(java.util.Set<java.lang.annotation.Annotation> qualifiers)
Replace all qualifiers.
|
BeanAttributesConfigurator<T> |
scope(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
Replace Bean scope
|
BeanAttributesConfigurator<T> |
stereotypes(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> stereotypes)
Replace stereotypes on the configured bean
|
BeanAttributesConfigurator<T> |
types(java.util.Set<java.lang.reflect.Type> types)
Replace bean types
|
BeanAttributesConfigurator<T> |
types(java.lang.reflect.Type... types)
Replace bean types
|
BeanAttributesConfigurator<T> addType(java.lang.reflect.Type type)
type
- the type to addBeanAttributesConfigurator<T> addType(TypeLiteral<?> typeLiteral)
typeLiteral
- the type to addBeanAttributesConfigurator<T> addTypes(java.lang.reflect.Type... types)
types
- types to addBeanAttributesConfigurator<T> addTypes(java.util.Set<java.lang.reflect.Type> types)
types
- types to addBeanAttributesConfigurator<T> addTransitiveTypeClosure(java.lang.reflect.Type type)
type
- to build the closure fromBeanAttributesConfigurator<T> types(java.lang.reflect.Type... types)
types
- the types of the configured beanBeanAttributesConfigurator<T> types(java.util.Set<java.lang.reflect.Type> types)
types
- the types of the configured beanBeanAttributesConfigurator<T> scope(java.lang.Class<? extends java.lang.annotation.Annotation> scope)
scope
- new scope for the configured beanBeanAttributesConfigurator<T> addQualifier(java.lang.annotation.Annotation qualifier)
qualifier
- qualifier to addBeanAttributesConfigurator<T> addQualifiers(java.lang.annotation.Annotation... qualifiers)
qualifiers
- qualifiers to addBeanAttributesConfigurator<T> addQualifiers(java.util.Set<java.lang.annotation.Annotation> qualifiers)
qualifiers
- qualifiers to addBeanAttributesConfigurator<T> qualifiers(java.lang.annotation.Annotation... qualifiers)
qualifiers
- qualifiers for the build beanBeanAttributesConfigurator<T> qualifiers(java.util.Set<java.lang.annotation.Annotation> qualifiers)
qualifiers
- for the configured beanBeanAttributesConfigurator<T> addStereotype(java.lang.Class<? extends java.lang.annotation.Annotation> stereotype)
stereotype
- stereotype to addBeanAttributesConfigurator<T> addStereotypes(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> stereotypes)
stereotypes
- stereotypes to addBeanAttributesConfigurator<T> stereotypes(java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> stereotypes)
stereotypes
- for the configured beanBeanAttributesConfigurator<T> name(java.lang.String name)
name
- name for the configured beanBeanAttributesConfigurator<T> alternative(boolean value)
value
- value for alternative property