Package org.eclipse.aether.resolution
Interface ArtifactDescriptorPolicy
public interface ArtifactDescriptorPolicy
Controls the handling of errors related to reading an artifact descriptor.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Bit mask indicating that all errors should be silently ignored.static final int
Bit flag indicating that existent but invalid artifact descriptors should be silently ignored.static final int
Bit flag indicating that missing artifact descriptors should be silently ignored.static final int
Bit mask indicating that errors while reading the artifact descriptor should not be tolerated. -
Method Summary
Modifier and TypeMethodDescriptionint
getPolicy
(RepositorySystemSession session, ArtifactDescriptorPolicyRequest request) Gets the error policy for an artifact's descriptor.
-
Field Details
-
STRICT
Bit mask indicating that errors while reading the artifact descriptor should not be tolerated.- See Also:
-
IGNORE_MISSING
Bit flag indicating that missing artifact descriptors should be silently ignored.- See Also:
-
IGNORE_INVALID
Bit flag indicating that existent but invalid artifact descriptors should be silently ignored.- See Also:
-
IGNORE_ERRORS
Bit mask indicating that all errors should be silently ignored.- See Also:
-
-
Method Details
-
getPolicy
Gets the error policy for an artifact's descriptor.- Parameters:
session
- The repository session during which the policy is determined, must not benull
.request
- The policy request holding further details, must not benull
.- Returns:
- The bit mask describing the desired error policy.
-