Package org.eclipse.aether.spi.validator
Interface ValidatorFactory
-
public interface ValidatorFactory
A factory to create validators.- Since:
- 2.0.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidatornewInstance(org.eclipse.aether.RepositorySystemSession session)Creates a new validator for the session, orNOOPto abstain from validation.
-
-
-
Method Detail
-
newInstance
Validator newInstance(org.eclipse.aether.RepositorySystemSession session)
Creates a new validator for the session, orNOOPto 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 benull.- Returns:
- the validator to be used for the session, or
NOOPto abstain from validation, nevernull.
-
-