Class ReflectiveValidatorIndex

java.lang.Object
io.envoyproxy.pgv.ReflectiveValidatorIndex
All Implemented Interfaces:
ValidatorIndex

public final class ReflectiveValidatorIndex extends Object implements ValidatorIndex
ReflectiveValidatorIndex uses reflection to discover Validator implementations lazily the first time a type is validated. If no validator can be found for type, a fallback validator will be used (default ALWAYS_VALID).
  • Constructor Details

    • ReflectiveValidatorIndex

      public ReflectiveValidatorIndex()
    • ReflectiveValidatorIndex

      public ReflectiveValidatorIndex(ValidatorIndex fallbackIndex)
      Parameters:
      fallbackIndex - a ValidatorIndex implementation to use if reflective validator discovery fails.
  • Method Details