Package io.quarkus.deployment.builditem
Class ConfigMappingBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.ConfigMappingBuildItem
public final class ConfigMappingBuildItem
extends io.quarkus.builder.item.MultiBuildItem
Represents a build item that registers a configuration mapping interface in the Quarkus build process.
It associates a configuration class with the respective configuration prefix, enabling Quarkus to map configuration
properties to strongly-typed interfaces.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigMappingBuildItem(Class<?> configClass, String prefix) Constructs a new ConfigMappingBuildItem. -
Method Summary
-
Constructor Details
-
ConfigMappingBuildItem
Constructs a new ConfigMappingBuildItem.- Parameters:
configClass- the configuration class to be registeredprefix- the configuration prefix associated with the configuration class
-
-
Method Details
-
getConfigClass
-
getPrefix
-
isStaticInitSafe
public boolean isStaticInitSafe()Checks if the configuration class is safe to use during static initialization.- Returns:
- true if the configuration class is annotated with
StaticInitSafe, false otherwise
-
toConfigClass
public io.smallrye.config.ConfigMappings.ConfigClass toConfigClass() -
equals
-
hashCode
public int hashCode()
-