Interface ModeAwareValidator<T extends ConfigValidatable>

Type Parameters:
T - The type of configuration object being validated
All Superinterfaces:
ConfigValidator<T>

public interface ModeAwareValidator<T extends ConfigValidatable> extends ConfigValidator<T>
Extension of ConfigValidator that supports mode-aware validation. Validators implementing this interface can adjust their validation rules based on the ValidationMode.
  • Method Details

    • validate

      ValidationResult validate(T config, ValidationMode mode)
      Validates the given configuration object using the specified validation mode.
      Parameters:
      config - The configuration object to validate
      mode - The validation mode to apply
      Returns:
      ValidationResult containing the validation outcome
    • validate

      default ValidationResult validate(T config)
      Default implementation delegates to mode-aware validate with PRODUCTION mode.
      Specified by:
      validate in interface ConfigValidator<T extends ConfigValidatable>
      Parameters:
      config - The configuration object to validate
      Returns:
      ValidationResult containing the validation outcome