public final class SimpleArtifactDescriptorPolicy extends Object implements org.eclipse.aether.resolution.ArtifactDescriptorPolicy
Constructor and Description |
---|
SimpleArtifactDescriptorPolicy(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.
|
Modifier and Type | Method and Description |
---|---|
int |
getPolicy(org.eclipse.aether.RepositorySystemSession session,
org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest request) |
public SimpleArtifactDescriptorPolicy(boolean ignoreMissing, boolean ignoreInvalid)
ignoreMissing
- true
to ignore missing descriptors, false
to fail resolution.ignoreInvalid
- true
to ignore invalid descriptors, false
to fail resolution.public SimpleArtifactDescriptorPolicy(int policy)
policy
- The bit mask describing the policy.public int getPolicy(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest request)
getPolicy
in interface org.eclipse.aether.resolution.ArtifactDescriptorPolicy
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.