Class SimpleArtifactDescriptorPolicy

  • All Implemented Interfaces:
    ArtifactDescriptorPolicy

    public final class SimpleArtifactDescriptorPolicy
    extends java.lang.Object
    implements ArtifactDescriptorPolicy
    An artifact descriptor error policy that allows to control error handling at a global level.
    • Field Detail

      • policy

        private final int policy
    • 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.