Package io.quarkus.arc.deployment
Class SyntheticBeanBuildItem.ExtendedBeanConfigurator
- java.lang.Object
-
- io.quarkus.arc.processor.ConfiguratorBase<THIS>
-
- io.quarkus.arc.processor.BeanConfiguratorBase<SyntheticBeanBuildItem.ExtendedBeanConfigurator,Object>
-
- io.quarkus.arc.deployment.SyntheticBeanBuildItem.ExtendedBeanConfigurator
-
- All Implemented Interfaces:
Consumer<org.jboss.jandex.AnnotationInstance>
- Enclosing class:
- SyntheticBeanBuildItem
public static class SyntheticBeanBuildItem.ExtendedBeanConfigurator extends BeanConfiguratorBase<SyntheticBeanBuildItem.ExtendedBeanConfigurator,Object>
This construct is not thread-safe and should not be reused.
-
-
Field Summary
-
Fields inherited from class io.quarkus.arc.processor.BeanConfiguratorBase
alternative, creatorConsumer, defaultBean, destroyerConsumer, forceApplicationClass, implClazz, name, priority, providerType, qualifiers, removable, scope, stereotypes, targetPackageName, types
-
Fields inherited from class io.quarkus.arc.processor.ConfiguratorBase
params
-
-
Constructor Summary
Constructors Constructor Description ExtendedBeanConfigurator(org.jboss.jandex.DotName implClazz)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SyntheticBeanBuildItem
done()
Finish the configurator.(package private) org.jboss.jandex.DotName
getImplClazz()
(package private) Set<org.jboss.jandex.AnnotationInstance>
getQualifiers()
(package private) io.quarkus.runtime.RuntimeValue<?>
getRuntimeValue()
(package private) Supplier<?>
getSupplier()
SyntheticBeanBuildItem.ExtendedBeanConfigurator
runtimeValue(io.quarkus.runtime.RuntimeValue<?> runtimeValue)
SyntheticBeanBuildItem.ExtendedBeanConfigurator
setRuntimeInit()
A synthetic bean whose instance is produced through a recorder is initialized duringExecutionTime.STATIC_INIT
by default.SyntheticBeanBuildItem.ExtendedBeanConfigurator
supplier(Supplier<?> supplier)
-
Methods inherited from class io.quarkus.arc.processor.BeanConfiguratorBase
accept, addQualifier, addQualifier, addQualifier, addQualifier, addStereotype, addType, addType, addType, alternativePriority, cast, creator, creator, defaultBean, destroyer, destroyer, forceApplicationClass, name, named, priority, providerType, qualifiers, read, scope, scope, stereotypes, targetPackageName, types, types, unremovable
-
Methods inherited from class io.quarkus.arc.processor.ConfiguratorBase
param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, param, read, self
-
-
-
-
Method Detail
-
done
public SyntheticBeanBuildItem done()
Finish the configurator.- Returns:
- a new build item
-
supplier
public SyntheticBeanBuildItem.ExtendedBeanConfigurator supplier(Supplier<?> supplier)
-
runtimeValue
public SyntheticBeanBuildItem.ExtendedBeanConfigurator runtimeValue(io.quarkus.runtime.RuntimeValue<?> runtimeValue)
-
setRuntimeInit
public SyntheticBeanBuildItem.ExtendedBeanConfigurator setRuntimeInit()
A synthetic bean whose instance is produced through a recorder is initialized duringExecutionTime.STATIC_INIT
by default.It is possible to change this behavior and initialize the bean during the
ExecutionTime.RUNTIME_INIT
. However, in such case a client that attempts to obtain such bean duringExecutionTime.STATIC_INIT
or before runtime-init synthetic beans are initialized will receive an exception.ExecutionTime.RUNTIME_INIT
build steps that access a runtime-init synthetic bean should consume theSyntheticBeansRuntimeInitBuildItem
.- Returns:
- self
- See Also:
SyntheticBeansRuntimeInitBuildItem
-
getImplClazz
org.jboss.jandex.DotName getImplClazz()
-
getQualifiers
Set<org.jboss.jandex.AnnotationInstance> getQualifiers()
-
getSupplier
Supplier<?> getSupplier()
-
getRuntimeValue
io.quarkus.runtime.RuntimeValue<?> getRuntimeValue()
-
-