Class SimpleArtifactDescriptorPolicy

  • All Implemented Interfaces:
    org.eclipse.aether.resolution.ArtifactDescriptorPolicy

    public final class SimpleArtifactDescriptorPolicy
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getPolicy​(org.eclipse.aether.RepositorySystemSession session, org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleArtifactDescriptorPolicy

        public SimpleArtifactDescriptorPolicy​(boolean ignoreMissing,
                                              boolean ignoreInvalid)
        Creates a new error policy with the specified behavior.
        Parameters:
        ignoreMissing - true to ignore missing descriptors, false to fail resolution.
        ignoreInvalid - true to ignore invalid descriptors, false to fail resolution.
      • SimpleArtifactDescriptorPolicy

        public SimpleArtifactDescriptorPolicy​(int policy)
        Creates a new error policy with the specified bit mask.
        Parameters:
        policy - The bit mask describing the policy.
    • Method Detail

      • getPolicy

        public int getPolicy​(org.eclipse.aether.RepositorySystemSession session,
                             org.eclipse.aether.resolution.ArtifactDescriptorPolicyRequest request)
        Specified by:
        getPolicy in interface org.eclipse.aether.resolution.ArtifactDescriptorPolicy