Class RecorderBeanInitializedBuildItem


  • @Deprecated
    public final class RecorderBeanInitializedBuildItem
    extends io.quarkus.builder.item.MultiBuildItem
    Deprecated.
    use synthetic beans for bean initialization instead
    Marker build item to indicate that a build step initializes a CDI bean "manually" through a Recorder.

    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.

    • Constructor Detail

      • RecorderBeanInitializedBuildItem

        public RecorderBeanInitializedBuildItem()
        Deprecated.