Package io.quarkus.deployment.builditem
Class BytecodeRecorderConstantDefinitionBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.deployment.builditem.BytecodeRecorderConstantDefinitionBuildItem
-
public final class BytecodeRecorderConstantDefinitionBuildItem extends MultiBuildItem
The definition of a constant that can be injected into recorders via their@Inject
-annotated constructor. Compared to simply passing the value to a recorder proxy, this build item allows for injecting values into recorders without introducing new dependencies from build steps that use the recorder to build steps that create the constant value. This can be useful in complex dependency graphs.
-
-
Constructor Summary
Constructors Constructor Description BytecodeRecorderConstantDefinitionBuildItem(Class<T> type, T value)
-
-
-
Constructor Detail
-
BytecodeRecorderConstantDefinitionBuildItem
public BytecodeRecorderConstantDefinitionBuildItem(Class<T> type, T value)
-
-
Method Detail
-
register
public void register(BytecodeRecorderImpl recorder)
-
-