Package io.quarkus.arc.deployment
Class RecorderBeanInitializedBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.arc.deployment.RecorderBeanInitializedBuildItem
-
@Deprecated public final class RecorderBeanInitializedBuildItem extends io.quarkus.builder.item.MultiBuildItem
Deprecated.use synthetic beans for bean initialization insteadMarker build item to indicate that a build step initializes a CDI bean "manually" through aRecorder
.A build step does not necessarily need to create an instance of this build item, declaring a
BuildProducer<RecorderBeanInitializedBuildItem>
parameter is enough.If a build step consumes a
List<RecorderBeanInitializedBuildItem>
parameter then it will be executed after all build steps that produce this build item.This build item is deprecated because initialization of a bean via a recorder method is considered a bad practice. Extension authors are encouraged to use
SyntheticBeanBuildItem
instead. See https://github.com/quarkusio/quarkus/issues/24441 for more information.