public interface WeldBeanConfigurator<T> extends BeanConfigurator<T>
BeanConfigurator| Modifier and Type | Method and Description |
|---|---|
WeldBeanConfigurator<T> |
addInjectionPoint(InjectionPoint injectionPoint)
Add an InjectionPoint to the configured bean
|
WeldBeanConfigurator<T> |
addInjectionPoints(InjectionPoint... injectionPoints)
Add InjectionPoints to the configured bean
|
WeldBeanConfigurator<T> |
addInjectionPoints(Set<InjectionPoint> injectionPoints)
Add InjectionPoints to the configured bean
|
WeldBeanConfigurator<T> |
addQualifier(Annotation qualifier)
Add a qualifier to the configured bean
|
WeldBeanConfigurator<T> |
addQualifiers(Annotation... qualifiers)
Add qualifiers to the bean.
|
WeldBeanConfigurator<T> |
addQualifiers(Set<Annotation> qualifiers)
Add qualifiers to the bean.
|
WeldBeanConfigurator<T> |
addStereotype(Class<? extends Annotation> stereotype)
Add a stereotype to the configured bean
|
WeldBeanConfigurator<T> |
addStereotypes(Set<Class<? extends Annotation>> stereotypes)
Add stereotypes to the configured bean
|
WeldBeanConfigurator<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.
|
WeldBeanConfigurator<T> |
addType(Type type)
Add a type to the bean types
|
WeldBeanConfigurator<T> |
addType(TypeLiteral<?> typeLiteral)
Add a type to the bean types
|
WeldBeanConfigurator<T> |
addTypes(Set<Type> types)
Add types to the bean types
|
WeldBeanConfigurator<T> |
addTypes(Type... types)
Add types to the bean types
|
WeldBeanConfigurator<T> |
alternative(boolean value)
Change the alternative status of the configured bean.
|
WeldBeanConfigurator<T> |
beanClass(Class<?> beanClass)
Set the class of the configured Bean.
|
<U extends T> |
createWith(Function<CreationalContext<U>,U> callback)
Set a callback to create a bean instance.
|
WeldBeanConfigurator<T> |
destroyWith(BiConsumer<T,CreationalContext<T>> callback)
Set a callback to destroy a bean instance.
|
WeldBeanConfigurator<T> |
disposeWith(BiConsumer<T,Instance<Object>> callback)
Set a callback to destroy a bean instance.
|
WeldBeanConfigurator<T> |
id(String id)
Make the configured bean implements
PassivationCapable and its Id for passivation. |
WeldBeanConfigurator<T> |
injectionPoints(InjectionPoint... injectionPoints)
Replace InjectionPoints for the configured bean
|
WeldBeanConfigurator<T> |
injectionPoints(Set<InjectionPoint> injectionPoints)
Replace InjectionPoints for the configured bean
|
WeldBeanConfigurator<T> |
name(String name)
Set the name of the configured bean
|
WeldBeanConfigurator<T> |
priority(int priority)
Allows to set a priority to an alternative bean hence selecting it globally.
|
<U extends T> |
produceWith(Function<Instance<Object>,U> callback)
Set a callback to create a bean instance.
|
WeldBeanConfigurator<T> |
qualifiers(Annotation... qualifiers)
Replace all qualifiers.
|
WeldBeanConfigurator<T> |
qualifiers(Set<Annotation> qualifiers)
Replace all qualifiers.
|
<U extends T> |
read(AnnotatedType<U> type)
Read the information from the given annotated type.
|
WeldBeanConfigurator<T> |
read(BeanAttributes<?> beanAttributes)
Read the information from the given bean attributes.
|
WeldBeanConfigurator<T> |
scope(Class<? extends Annotation> scope)
Replace Bean scope
|
WeldBeanConfigurator<T> |
stereotypes(Set<Class<? extends Annotation>> stereotypes)
Replace stereotypes on the configured bean
|
WeldBeanConfigurator<T> |
types(Set<Type> types)
Replace bean types
|
WeldBeanConfigurator<T> |
types(Type... types)
Replace bean types
|
WeldBeanConfigurator<T> alternative(boolean value)
BeanConfiguratoralternative in interface BeanConfigurator<T>value - value for alternative propertyWeldBeanConfigurator<T> name(String name)
BeanConfiguratorname in interface BeanConfigurator<T>name - name for the configured beanWeldBeanConfigurator<T> stereotypes(Set<Class<? extends Annotation>> stereotypes)
BeanConfiguratorstereotypes in interface BeanConfigurator<T>stereotypes - for the configured beanWeldBeanConfigurator<T> addStereotypes(Set<Class<? extends Annotation>> stereotypes)
BeanConfiguratoraddStereotypes in interface BeanConfigurator<T>stereotypes - stereotypes to addWeldBeanConfigurator<T> addStereotype(Class<? extends Annotation> stereotype)
BeanConfiguratoraddStereotype in interface BeanConfigurator<T>stereotype - stereotype to addWeldBeanConfigurator<T> qualifiers(Set<Annotation> qualifiers)
BeanConfiguratorqualifiers in interface BeanConfigurator<T>qualifiers - for the configured beanWeldBeanConfigurator<T> qualifiers(Annotation... qualifiers)
BeanConfiguratorqualifiers in interface BeanConfigurator<T>qualifiers - qualifiers for the build beanWeldBeanConfigurator<T> addQualifiers(Set<Annotation> qualifiers)
BeanConfiguratoraddQualifiers in interface BeanConfigurator<T>qualifiers - qualifiers to addWeldBeanConfigurator<T> addQualifiers(Annotation... qualifiers)
BeanConfiguratoraddQualifiers in interface BeanConfigurator<T>qualifiers - qualifiers to addWeldBeanConfigurator<T> addQualifier(Annotation qualifier)
BeanConfiguratoraddQualifier in interface BeanConfigurator<T>qualifier - qualifier to addWeldBeanConfigurator<T> scope(Class<? extends Annotation> scope)
BeanConfiguratorscope in interface BeanConfigurator<T>scope - new scope for the configured beanWeldBeanConfigurator<T> types(Set<Type> types)
BeanConfiguratortypes in interface BeanConfigurator<T>types - the types of the configured beanWeldBeanConfigurator<T> types(Type... types)
BeanConfiguratortypes in interface BeanConfigurator<T>types - the types of the configured beanWeldBeanConfigurator<T> addTransitiveTypeClosure(Type type)
BeanConfiguratoraddTransitiveTypeClosure in interface BeanConfigurator<T>type - to build the closure fromWeldBeanConfigurator<T> addTypes(Set<Type> types)
BeanConfiguratoraddTypes in interface BeanConfigurator<T>types - types to addWeldBeanConfigurator<T> addTypes(Type... types)
BeanConfiguratoraddTypes in interface BeanConfigurator<T>types - types to addWeldBeanConfigurator<T> addType(TypeLiteral<?> typeLiteral)
BeanConfiguratoraddType in interface BeanConfigurator<T>typeLiteral - the type to addWeldBeanConfigurator<T> addType(Type type)
BeanConfiguratoraddType in interface BeanConfigurator<T>type - the type to addWeldBeanConfigurator<T> read(BeanAttributes<?> beanAttributes)
BeanConfiguratorread in interface BeanConfigurator<T>beanAttributes - beanAttributes to read information from<U extends T> WeldBeanConfigurator<U> read(AnnotatedType<U> type)
BeanConfiguratorread in interface BeanConfigurator<T>type - class to read information fromWeldBeanConfigurator<T> disposeWith(BiConsumer<T,Instance<Object>> callback)
BeanConfiguratorIf no dispose callback is specified, a NOOP callback is automatically set.
The Instance argument might be used to simulate disposer method parameter injection. All dependent scoped bean
instances obtained from Instance during the callback execution are destroyed when the execution completes.
disposeWith in interface BeanConfigurator<T>callback - the callback to dispose the instanceWeldBeanConfigurator<T> destroyWith(BiConsumer<T,CreationalContext<T>> callback)
BeanConfiguratorIf no destroy callback is specified, a NOOP callback is automatically set.
destroyWith in interface BeanConfigurator<T>callback - the callback to destroy the instance<U extends T> WeldBeanConfigurator<U> produceWith(Function<Instance<Object>,U> callback)
BeanConfigurator
The Instance argument might be used to simulate producer method parameter injection. However, dependent scoped
bean instances obtained from Instance during the callback execution remain managed until the produced bean
instance is destroyed. Therefore, applications are encouraged to always destroy unneeded dependent scoped bean instances
obtained from Instance.
produceWith in interface BeanConfigurator<T>callback - the callback to create the instance<U extends T> WeldBeanConfigurator<U> createWith(Function<CreationalContext<U>,U> callback)
BeanConfiguratorcreateWith in interface BeanConfigurator<T>callback - the callback to create the instanceContextual.create(CreationalContext)WeldBeanConfigurator<T> id(String id)
BeanConfiguratorPassivationCapable and its Id for passivation.id in interface BeanConfigurator<T>id - forPassivationCapable.getId()WeldBeanConfigurator<T> injectionPoints(Set<InjectionPoint> injectionPoints)
BeanConfiguratorinjectionPoints in interface BeanConfigurator<T>injectionPoints - the injectionPoints for the configured beanWeldBeanConfigurator<T> injectionPoints(InjectionPoint... injectionPoints)
BeanConfiguratorinjectionPoints in interface BeanConfigurator<T>injectionPoints - the injectionPoints for the configured beanWeldBeanConfigurator<T> addInjectionPoints(Set<InjectionPoint> injectionPoints)
BeanConfiguratoraddInjectionPoints in interface BeanConfigurator<T>injectionPoints - the injectionPoints to addWeldBeanConfigurator<T> addInjectionPoints(InjectionPoint... injectionPoints)
BeanConfiguratoraddInjectionPoints in interface BeanConfigurator<T>injectionPoints - the injectionPoints to addWeldBeanConfigurator<T> addInjectionPoint(InjectionPoint injectionPoint)
BeanConfiguratoraddInjectionPoint in interface BeanConfigurator<T>injectionPoint - the injectionPoint to addWeldBeanConfigurator<T> beanClass(Class<?> beanClass)
BeanConfiguratorbeanClass in interface BeanConfigurator<T>beanClass - class of the configured beanWeldBeanConfigurator<T> priority(int priority)
Interceptor.Priority annotation on an actual bean class
or implementing Prioritized interface with custom bean classes.
This method has no effect on custom beans which are not alternatives.priority - the priority of this beanCopyright © 2018 JBoss by Red Hat. All rights reserved.