Interface ValidatorFactory


public interface ValidatorFactory
A factory to create validators.
Since:
2.0.8
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Validator
    The no-op (does not validate anything) instance of validator.
  • Method Summary

    Modifier and Type
    Method
    Description
    newInstance(org.eclipse.aether.RepositorySystemSession session)
    Creates a new validator for the session, or NOOP to abstain from validation.
  • Field Details

    • NOOP

      static final Validator NOOP
      The no-op (does not validate anything) instance of validator.
      Since:
      2.0.22
  • Method Details

    • newInstance

      Validator newInstance(org.eclipse.aether.RepositorySystemSession session)
      Creates a new validator for the session, or NOOP to abstain from validation. Factory is consulted once per session (if cache present in session) and returned instances are cached and reused across single session.
      Parameters:
      session - the repository system session from which to configure the validator, must not be null.
      Returns:
      the validator to be used for the session, or NOOP to abstain from validation, never null.