Package io.quarkus.deployment.builditem
Class ConfigPropertiesBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.ConfigPropertiesBuildItem
public final class ConfigPropertiesBuildItem
extends io.quarkus.builder.item.MultiBuildItem
A
MultiBuildItem used to register a class annotated with @ConfigProperties
for build-time configuration mapping in Quarkus.
This build item allows Quarkus to generate an implementation of the configuration class based on the provided prefix, enabling strong typing and reflection-free access to configuration properties.
Multiple instances of this build item can be produced, one for each configuration class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigPropertiesBuildItem(Class<?> configClass, String prefix) Constructs a newConfigPropertiesBuildItem. -
Method Summary
-
Constructor Details
-
ConfigPropertiesBuildItem
Constructs a newConfigPropertiesBuildItem.- Parameters:
configClass- the class annotated with@ConfigProperties. Must not benull.prefix- the configuration prefix associated with the class. Must not benull.
-
-
Method Details
-
getConfigClass
Returns the configuration class annotated with@ConfigProperties.- Returns:
- the configuration class.
-
getPrefix
Returns the configuration prefix that should be used to map configuration properties to the annotated class.- Returns:
- the configuration prefix.
-
equals
-
hashCode
public int hashCode()
-