Interface ValidatorFactory


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

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

      • NOOP

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

      • 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.