Package org.eclipse.aether.spi.validator
Interface ValidatorFactory
public interface ValidatorFactory
A factory to create validators.
- Since:
- 2.0.8
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(org.eclipse.aether.RepositorySystemSession session) Creates a new validator for the session, orNOOPto abstain from validation.
-
Field Details
-
NOOP
The no-op (does not validate anything) instance of validator.- Since:
- 2.0.22
-
-
Method Details
-
newInstance
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.
-