Package io.quarkus.arc.deployment
Class SyntheticBeanBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.arc.deployment.SyntheticBeanBuildItem
public final class SyntheticBeanBuildItem
extends io.quarkus.builder.item.MultiBuildItem
Makes it possible to register a synthetic bean.
Bean instances can be easily produced through a recorder and set via SyntheticBeanBuildItem.ExtendedBeanConfigurator.supplier(Supplier),
SyntheticBeanBuildItem.ExtendedBeanConfigurator.runtimeValue(RuntimeValue), SyntheticBeanBuildItem.ExtendedBeanConfigurator.createWith(Function) and
SyntheticBeanBuildItem.ExtendedBeanConfigurator.runtimeProxy(Object).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis construct is not thread-safe and should not be reused. -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescription(package private) SyntheticBeanBuildItem.ExtendedBeanConfiguratorReturns a configurator object allowing for further customization of the synthetic bean.configure(org.jboss.jandex.DotName implClazz) Returns a configurator object allowing for further customization of the synthetic bean.Returns a configurator object allowing for further customization of the synthetic bean.create(org.jboss.jandex.DotName implClazz) Returns a configurator object allowing for further customization of the synthetic bean.(package private) boolean(package private) boolean(package private) boolean
-
Constructor Details
-
SyntheticBeanBuildItem
SyntheticBeanBuildItem(SyntheticBeanBuildItem.ExtendedBeanConfigurator configurator)
-
-
Method Details
-
configure
Returns a configurator object allowing for further customization of the synthetic bean.The implementation class is automatically registered as a resulting bean type.
- Parameters:
implClazz-- Returns:
- a new configurator instance
- See Also:
-
configure
public static SyntheticBeanBuildItem.ExtendedBeanConfigurator configure(org.jboss.jandex.DotName implClazz) Returns a configurator object allowing for further customization of the synthetic bean.The implementation class is automatically registered as a resulting bean type.
- Parameters:
implClazz-- Returns:
- a new configurator instance
- See Also:
-
create
Returns a configurator object allowing for further customization of the synthetic bean.Unlike
configure(Class), the implementation class is not registered as a resulting bean type.- Parameters:
implClazz-- Returns:
- a new configurator instance
- See Also:
-
create
public static SyntheticBeanBuildItem.ExtendedBeanConfigurator create(org.jboss.jandex.DotName implClazz) Returns a configurator object allowing for further customization of the synthetic bean.Unlike
configure(DotName), the implementation class is not registered as a resulting bean type.- Parameters:
implClazz-- Returns:
- a new configurator instance
- See Also:
-
configurator
SyntheticBeanBuildItem.ExtendedBeanConfigurator configurator() -
isStaticInit
boolean isStaticInit() -
hasRecorderInstance
boolean hasRecorderInstance() -
hasCheckActiveSupplier
boolean hasCheckActiveSupplier()
-