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(Annotation qualifier)
Add a qualifier to the configured bean
|
BeanAttributesConfigurator<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 bean
|
BeanAttributesConfigurator<T> |
addStereotypes(Set<Class<? extends Annotation>> stereotypes)
Add stereotypes to the configured bean
|
BeanAttributesConfigurator<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 types
|
BeanAttributesConfigurator<T> |
addType(TypeLiteral<?> typeLiteral)
Add a type to the bean types
|
BeanAttributesConfigurator<T> |
addTypes(Set<Type> types)
Add types to the bean types
|
BeanAttributesConfigurator<T> |
addTypes(Type... types)
Add types to the bean types
|
BeanAttributesConfigurator<T> |
alternative(boolean value)
Change the alternative status of the configured bean.
|
BeanAttributesConfigurator<T> |
name(String name)
Set the name of the configured bean
|
BeanAttributesConfigurator<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 scope
|
BeanAttributesConfigurator<T> |
stereotypes(Set<Class<? extends Annotation>> stereotypes)
Replace stereotypes on the configured bean
|
BeanAttributesConfigurator<T> |
types(Set<Type> types)
Replace bean types
|
BeanAttributesConfigurator<T> |
types(Type... types)
Replace bean types
|
BeanAttributesConfigurator<T> addType(Type type)
type
- the type to addBeanAttributesConfigurator<T> addType(TypeLiteral<?> typeLiteral)
typeLiteral
- the type to addBeanAttributesConfigurator<T> addTypes(Type... types)
types
- types to addBeanAttributesConfigurator<T> addTypes(Set<Type> types)
types
- types to addBeanAttributesConfigurator<T> addTransitiveTypeClosure(Type type)
type
- to build the closure fromBeanAttributesConfigurator<T> types(Type... types)
types
- the types of the configured beanBeanAttributesConfigurator<T> types(Set<Type> types)
types
- the types of the configured beanBeanAttributesConfigurator<T> scope(Class<? extends Annotation> scope)
scope
- new scope for the configured beanBeanAttributesConfigurator<T> addQualifier(Annotation qualifier)
qualifier
- qualifier to addBeanAttributesConfigurator<T> addQualifiers(Annotation... qualifiers)
qualifiers
- qualifiers to addBeanAttributesConfigurator<T> addQualifiers(Set<Annotation> qualifiers)
qualifiers
- qualifiers to addBeanAttributesConfigurator<T> qualifiers(Annotation... qualifiers)
qualifiers
- qualifiers for the build beanBeanAttributesConfigurator<T> qualifiers(Set<Annotation> qualifiers)
qualifiers
- for the configured beanBeanAttributesConfigurator<T> addStereotype(Class<? extends Annotation> stereotype)
stereotype
- stereotype to addBeanAttributesConfigurator<T> addStereotypes(Set<Class<? extends Annotation>> stereotypes)
stereotypes
- stereotypes to addBeanAttributesConfigurator<T> stereotypes(Set<Class<? extends Annotation>> stereotypes)
stereotypes
- for the configured beanBeanAttributesConfigurator<T> name(String name)
name
- name for the configured beanBeanAttributesConfigurator<T> alternative(boolean value)
value
- value for alternative propertyCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.