Class PropertyMapper.Builder<T>
java.lang.Object
org.keycloak.quarkus.runtime.configuration.mappers.PropertyMapper.Builder<T>
- Enclosing class:
- PropertyMapper<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddValidateEnabled(BooleanSupplier isEnabled, String enabledWhen) Similar toenabledWhen, but uses the condition as a validator that is added to the current one.addValidator(BiConsumer<PropertyMapper<T>, io.smallrye.config.ConfigValue> validator) build()isEnabled(BooleanSupplier isEnabled) isEnabled(BooleanSupplier isEnabled, String enabledWhen) isMasked(boolean isMasked) paramLabel(String label) transformer(BiFunction<Optional<String>, io.smallrye.config.ConfigSourceInterceptorContext, Optional<String>> mapper) Set the validator, overwriting the current one.
-
Constructor Details
-
Builder
-
-
Method Details
-
to
-
transformer
public PropertyMapper.Builder<T> transformer(BiFunction<Optional<String>, io.smallrye.config.ConfigSourceInterceptorContext, Optional<String>> mapper) -
paramLabel
-
mapFrom
-
mapFrom
-
isMasked
-
isEnabled
-
isEnabled
-
validator
Set the validator, overwriting the current one. -
addValidator
public PropertyMapper.Builder<T> addValidator(BiConsumer<PropertyMapper<T>, io.smallrye.config.ConfigValue> validator) -
addValidateEnabled
Similar toenabledWhen, but uses the condition as a validator that is added to the current one. This allows the option to appear in help.- Returns:
-
build
-