Class PropertyMapper<T>
java.lang.Object
org.keycloak.quarkus.runtime.configuration.mappers.PropertyMapper<T>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PropertyMapper.Builder<T>fromOption(Option<T> opt) IfisStrictExpectedValues()is false, custom values can be provided Otherwise, only specified expected values can be used.getFrom()getTo()getType()booleanstatic booleanisCliOption(io.smallrye.config.ConfigValue configValue) booleanstatic booleanisEnvOption(io.smallrye.config.ConfigValue configValue) booleanisHidden()booleanisList()booleanbooleanvoidsetEnabled(BooleanSupplier enabled) voidsetEnabledWhen(String enabledWhen) voidvalidate(io.smallrye.config.ConfigValue value) voidvalidateValues(io.smallrye.config.ConfigValue configValue, BiConsumer<io.smallrye.config.ConfigValue, String> singleValidator)
-
Method Details
-
getOption
-
setEnabled
-
isEnabled
public boolean isEnabled() -
getEnabledWhen
-
setEnabledWhen
-
getType
-
getFrom
-
getDescription
-
getExpectedValues
IfisStrictExpectedValues()is false, custom values can be provided Otherwise, only specified expected values can be used.- Returns:
- expected values
-
isStrictExpectedValues
public boolean isStrictExpectedValues() -
getDefaultValue
-
getCategory
-
isHidden
public boolean isHidden() -
isBuildTime
public boolean isBuildTime() -
isRunTime
public boolean isRunTime() -
getTo
-
getParamLabel
-
getCliFormat
-
getEnvVarFormat
-
getDeprecatedMetadata
-
fromOption
-
validate
public void validate(io.smallrye.config.ConfigValue value) -
isList
public boolean isList() -
validateValues
public void validateValues(io.smallrye.config.ConfigValue configValue, BiConsumer<io.smallrye.config.ConfigValue, String> singleValidator) -
isCliOption
public static boolean isCliOption(io.smallrye.config.ConfigValue configValue) -
isEnvOption
public static boolean isEnvOption(io.smallrye.config.ConfigValue configValue)
-