Class SimpleArtifactDescriptorPolicy
java.lang.Object
org.eclipse.aether.util.repository.SimpleArtifactDescriptorPolicy
- All Implemented Interfaces:
- ArtifactDescriptorPolicy
public final class SimpleArtifactDescriptorPolicy
extends Object
implements ArtifactDescriptorPolicy
An artifact descriptor error policy that allows to control error handling at a global level.
- 
Field SummaryFields inherited from interface org.eclipse.aether.resolution.ArtifactDescriptorPolicyIGNORE_ERRORS, IGNORE_INVALID, IGNORE_MISSING, STRICT
- 
Constructor SummaryConstructorsConstructorDescriptionSimpleArtifactDescriptorPolicy(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 SummaryModifier and TypeMethodDescriptionintgetPolicy(RepositorySystemSession session, ArtifactDescriptorPolicyRequest request) Gets the error policy for an artifact's descriptor.
- 
Constructor Details- 
SimpleArtifactDescriptorPolicyCreates 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
 
- 
SimpleArtifactDescriptorPolicyCreates a new error policy with the specified bit mask.- Parameters:
- policy- the bit mask describing the policy
 
 
- 
- 
Method Details- 
getPolicyDescription copied from interface:ArtifactDescriptorPolicyGets the error policy for an artifact's descriptor.- Specified by:
- getPolicyin interface- ArtifactDescriptorPolicy
- Parameters:
- session- The repository session during which the policy is determined, must not be- null.
- request- The policy request holding further details, must not be- null.
- Returns:
- The bit mask describing the desired error policy.
 
 
-