Class PropertyMapper<T>

java.lang.Object
org.keycloak.quarkus.runtime.configuration.mappers.PropertyMapper<T>

public class PropertyMapper<T> extends Object
  • Method Details

    • getOption

      public Option<T> getOption()
    • setEnabled

      public void setEnabled(BooleanSupplier enabled)
    • isEnabled

      public boolean isEnabled()
    • getEnabledWhen

      public Optional<String> getEnabledWhen()
    • setEnabledWhen

      public void setEnabledWhen(String enabledWhen)
    • getType

      public Class<T> getType()
    • getFrom

      public String getFrom()
    • getDescription

      public String getDescription()
    • getExpectedValues

      public List<String> getExpectedValues()
      If isStrictExpectedValues() is false, custom values can be provided Otherwise, only specified expected values can be used.
      Returns:
      expected values
    • isStrictExpectedValues

      public boolean isStrictExpectedValues()
    • getDefaultValue

      public Optional<T> getDefaultValue()
    • getCategory

      public OptionCategory getCategory()
    • isHidden

      public boolean isHidden()
    • isBuildTime

      public boolean isBuildTime()
    • isRunTime

      public boolean isRunTime()
    • getTo

      public String getTo()
    • getParamLabel

      public String getParamLabel()
    • getCliFormat

      public String getCliFormat()
    • getEnvVarFormat

      public String getEnvVarFormat()
    • getDeprecatedMetadata

      public Optional<DeprecatedMetadata> getDeprecatedMetadata()
    • fromOption

      public static <T> PropertyMapper.Builder<T> fromOption(Option<T> opt)
    • 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)