Class ArtifactDescriptor

  • Direct Known Subclasses:
    BundleDescriptor

    public abstract class ArtifactDescriptor
    extends Descriptor
    Information about an artifact. Note that this implementation is not synchronized. If multiple threads access a descriptor concurrently, and at least one of the threads modifies the descriptor structurally, it must be synchronized externally. However, once a descriptor is locked, it is safe to access it concurrently.
    • Constructor Detail

      • ArtifactDescriptor

        protected ArtifactDescriptor​(String name)
        Constructor for a new descriptor
        Parameters:
        name - The name
    • Method Detail

      • getManifest

        public abstract Manifest getManifest()
        If the artifact has a manifest, return it
        Returns:
        The manifest
        Since:
        2.2.0
      • getArtifactFile

        public abstract URL getArtifactFile()
        Get the artifact file
        Returns:
        The artifact file or null if not present.
      • getArtifact

        public abstract org.apache.sling.feature.Artifact getArtifact()
        Get the artifact
        Returns:
        The artifact