public abstract class BeanConfiguratorBase<B extends BeanConfiguratorBase<B,T>,T> extends Object implements Consumer<org.jboss.jandex.AnnotationInstance>
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
alternativePriority |
protected Consumer<io.quarkus.gizmo.MethodCreator> |
creatorConsumer |
protected boolean |
defaultBean |
protected Consumer<io.quarkus.gizmo.MethodCreator> |
destroyerConsumer |
protected boolean |
forceApplicationClass |
protected org.jboss.jandex.DotName |
implClazz |
protected String |
name |
protected Map<String,Object> |
params |
protected org.jboss.jandex.Type |
providerType |
protected Set<org.jboss.jandex.AnnotationInstance> |
qualifiers |
protected boolean |
removable |
protected ScopeInfo |
scope |
protected Set<org.jboss.jandex.Type> |
types |
| Modifier | Constructor and Description |
|---|---|
protected |
BeanConfiguratorBase(org.jboss.jandex.DotName implClazz) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(org.jboss.jandex.AnnotationInstance qualifier) |
QualifierConfigurator<B> |
addQualifier() |
B |
addQualifier(org.jboss.jandex.AnnotationInstance qualifier) |
B |
addQualifier(Class<? extends Annotation> annotationClass) |
B |
addQualifier(org.jboss.jandex.DotName annotationName) |
B |
addType(Class<?> type) |
B |
addType(org.jboss.jandex.DotName className) |
B |
addType(org.jboss.jandex.Type type) |
B |
alternativePriority(int priority) |
protected static <T> T |
cast(Object obj) |
<U extends T> |
creator(Class<? extends BeanCreator<U>> creatorClazz) |
<U extends T> |
creator(Consumer<io.quarkus.gizmo.MethodCreator> methodCreatorConsumer) |
B |
defaultBean() |
<U extends T> |
destroyer(Class<? extends BeanDestroyer<U>> destroyerClazz) |
<U extends T> |
destroyer(Consumer<io.quarkus.gizmo.MethodCreator> methodCreatorConsumer) |
B |
forceApplicationClass()
Forces the bean to be considered an 'application class', so it will be defined in the runtime
ClassLoader and re-created on each redeployment.
|
B |
name(String name) |
B |
named(String name)
Unlike for the
name(String) method a new Named qualifier with the specified value is added
to the configured bean. |
B |
param(String name,
boolean value) |
B |
param(String name,
Class<?> value) |
B |
param(String name,
double value) |
B |
param(String name,
int value) |
B |
param(String name,
long value) |
B |
param(String name,
String value) |
B |
providerType(org.jboss.jandex.Type providerType)
The provider type is the "real" type of the bean instance created via
InjectableReferenceProvider.get(CreationalContext). |
B |
qualifiers(org.jboss.jandex.AnnotationInstance... qualifiers) |
B |
read(BeanConfiguratorBase<?,?> base)
Read metadata from another configurator base.
|
B |
scope(Class<? extends Annotation> scope) |
B |
scope(ScopeInfo scope) |
protected abstract B |
self() |
B |
types(Class<?>... types) |
B |
types(org.jboss.jandex.Type... types) |
B |
unremovable() |
protected final org.jboss.jandex.DotName implClazz
protected final Set<org.jboss.jandex.Type> types
protected final Set<org.jboss.jandex.AnnotationInstance> qualifiers
protected ScopeInfo scope
protected Integer alternativePriority
protected String name
protected Consumer<io.quarkus.gizmo.MethodCreator> creatorConsumer
protected Consumer<io.quarkus.gizmo.MethodCreator> destroyerConsumer
protected boolean defaultBean
protected boolean removable
protected org.jboss.jandex.Type providerType
protected boolean forceApplicationClass
protected BeanConfiguratorBase(org.jboss.jandex.DotName implClazz)
protected abstract B self()
public B read(BeanConfiguratorBase<?,?> base)
base - public B types(org.jboss.jandex.Type... types)
public B addType(org.jboss.jandex.DotName className)
public B addType(org.jboss.jandex.Type type)
public B addQualifier(Class<? extends Annotation> annotationClass)
public B addQualifier(org.jboss.jandex.DotName annotationName)
public B addQualifier(org.jboss.jandex.AnnotationInstance qualifier)
public QualifierConfigurator<B> addQualifier()
public B qualifiers(org.jboss.jandex.AnnotationInstance... qualifiers)
public B scope(Class<? extends Annotation> scope)
public B named(String name)
name(String) method a new Named qualifier with the specified value is added
to the configured bean.name - public B defaultBean()
public B unremovable()
public B forceApplicationClass()
public B alternativePriority(int priority)
public B providerType(org.jboss.jandex.Type providerType)
InjectableReferenceProvider.get(CreationalContext).
The container attempts to derive the provider type from the implementation class. However, in some cases it's better to specify it manually.
providerType - public <U extends T> B creator(Class<? extends BeanCreator<U>> creatorClazz)
public <U extends T> B creator(Consumer<io.quarkus.gizmo.MethodCreator> methodCreatorConsumer)
public <U extends T> B destroyer(Class<? extends BeanDestroyer<U>> destroyerClazz)
public <U extends T> B destroyer(Consumer<io.quarkus.gizmo.MethodCreator> methodCreatorConsumer)
protected static <T> T cast(Object obj)
Copyright © 2021 JBoss by Red Hat. All rights reserved.