Class LocalArtifactRepository

    • Field Detail

      • descriptorsOnLastSave

        private java.util.Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> descriptorsOnLastSave
    • Method Detail

      • loadMaven

        private void loadMaven()
      • saveMaven

        private void saveMaven()
      • getMetadataRelpath

        private java.lang.String getMetadataRelpath​(GAV gav)
      • save

        public void save()
      • createArtifactDescriptor

        public org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor createArtifactDescriptor​(org.eclipse.equinox.p2.metadata.IArtifactKey key)
        Specified by:
        createArtifactDescriptor in interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
        Overrides:
        createArtifactDescriptor in class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
      • getComparableDescriptor

        protected org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor getComparableDescriptor​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
        Description copied from class: ArtifactRepositoryBaseImpl
        Returns an IArtifactDescriptor instance which is comparable to the artifact descriptors stored in the index (i.e. the ArtifactRepositoryBaseImpl.descriptors member). A valid implementation is to convert the argument to the internal descriptor type ArtifactDescriptorT, but this is not a requirement. This method should be implemented in a way so that calling descriptors.contains(getComparableDescriptor(foreignDescriptor)) with a descriptor from a foreign artifact repository returns true if and only if copying that foreign artifact to this repository with AbstractArtifactRepository2.getOutputStream(IArtifactDescriptor) would not add a new artifact to this repository.

        This method may be called by any API method with an IArtifactDescriptor argument.

        Specified by:
        getComparableDescriptor in class ArtifactRepositoryBaseImpl<GAVArtifactDescriptor>
        Parameters:
        descriptor - An IArtifactDescriptor from any artifact repository.
      • toInternalDescriptor

        private GAVArtifactDescriptor toInternalDescriptor​(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
      • getBasedir

        private java.io.File getBasedir()
      • isModifiable

        public boolean isModifiable()
        Specified by:
        isModifiable in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
        Overrides:
        isModifiable in class org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>