Class SimpleArtifactDescriptorPolicy
java.lang.Object
org.eclipse.aether.util.repository.SimpleArtifactDescriptorPolicy
- All Implemented Interfaces:
org.eclipse.aether.resolution.ArtifactDescriptorPolicy
public final class SimpleArtifactDescriptorPolicy
extends Object
implements org.eclipse.aether.resolution.ArtifactDescriptorPolicy
An artifact descriptor error policy that allows to control error handling at a global level.
-
Field Summary
Fields inherited from interface org.eclipse.aether.resolution.ArtifactDescriptorPolicy
IGNORE_ERRORS, IGNORE_INVALID, IGNORE_MISSING, STRICT -
Constructor Summary
ConstructorsConstructorDescriptionSimpleArtifactDescriptorPolicy(boolean ignoreMissing, boolean ignoreInvalid) Creates a new error policy with the specified behavior.SimpleArtifactDescriptorPolicy(int policy) Creates a new error policy with the specified bit mask. -
Method Summary
Modifier and TypeMethodDescriptionintgetPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest request)
-
Constructor Details
-
SimpleArtifactDescriptorPolicy
Creates a new error policy with the specified behavior.- Parameters:
ignoreMissing-trueto ignore missing descriptors,falseto fail resolution.ignoreInvalid-trueto ignore invalid descriptors,falseto fail resolution.
-
SimpleArtifactDescriptorPolicy
Creates a new error policy with the specified bit mask.- Parameters:
policy- The bit mask describing the policy.
-
-
Method Details
-
getPolicy
public int getPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest request) - Specified by:
getPolicyin interfaceorg.eclipse.aether.resolution.ArtifactDescriptorPolicy
-