Class RepositoryReferences


  • public final class RepositoryReferences
    extends Object
    List of p2 repositories for a p2 operation. Instances of this class store a list of metadata and artifact repositories each, preserving the order in which the repositories were added.
    • Constructor Detail

      • RepositoryReferences

        public RepositoryReferences()
    • Method Detail

      • addMetadataRepository

        public void addMetadataRepository​(File metadataRepositoryLocation)
        Adds the metadata repository at the given location.
        Parameters:
        metadataRepositoryLocation - The folder containing the metadata repository file (content.xml or content.jar)
      • addMetadataRepository

        public void addMetadataRepository​(URI metadataRepository)
        Adds the metadata repository at the given location.
        Parameters:
        metadataRepositoryLocation - A URL pointing to a p2 metadata repository
      • addArtifactRepository

        public void addArtifactRepository​(File artifactRepositoryLocation)
        Adds the artifact repository at the given location.
        Parameters:
        artifactRepositoryLocation - The folder containing the artifact repository file structure
      • addArtifactRepository

        public void addArtifactRepository​(URI artifactRepository)
        Adds the artifact repository at the given location.
        Parameters:
        artifactRepositoryLocation - A URL pointing to a p2 artifact repository
      • addArtifactRepository

        public void addArtifactRepository​(RepositoryBlackboardKey blackboardKey)
        Adds the artifact repository which is stored in memory under the given key.
        Parameters:
        artifactRepositoryLocation - A key identifying a repository registered on the artifact repository blackboard.
      • getMetadataRepositories

        public List<URI> getMetadataRepositories()
        Returns the list of metadata repositories in the order in which they were added.
        Returns:
        the list metadata repositories.
      • getArtifactRepositories

        public List<URI> getArtifactRepositories()
        Returns the list of artifact repositories in the order in which they were added.
        Returns:
        the list of artifact repositories.