Interface ConfigDef.Validator

All Known Implementing Classes:
ConfigDef.CaseInsensitiveValidString, ConfigDef.CompositeValidator, ConfigDef.LambdaValidator, ConfigDef.ListSize, ConfigDef.NonEmptyString, ConfigDef.NonEmptyStringWithoutControlChars, ConfigDef.NonNullValidator, ConfigDef.Range, ConfigDef.ValidList, ConfigDef.ValidString
Enclosing class:
ConfigDef

public static interface ConfigDef.Validator
Validation logic the user may provide to perform single configuration validation.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ensureValid(String name, Object value)
    Perform single configuration validation.
  • Method Details

    • ensureValid

      void ensureValid(String name, Object value)
      Perform single configuration validation.
      Parameters:
      name - The name of the configuration
      value - The value of the configuration
      Throws:
      ConfigException - if the value is invalid.