public final class RepositoryReferences
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<java.net.URI> |
artifactRepos |
private java.util.List<java.net.URI> |
metadataRepos |
Constructor and Description |
---|
RepositoryReferences() |
Modifier and Type | Method and Description |
---|---|
void |
addArtifactRepository(java.io.File artifactRepositoryLocation)
Adds the artifact repository at the given location.
|
void |
addArtifactRepository(RepositoryBlackboardKey blackboardKey)
Adds the artifact repository which is stored in memory under the given key.
|
void |
addArtifactRepository(java.net.URI artifactRepository)
Adds the artifact repository at the given location.
|
void |
addMetadataRepository(java.io.File metadataRepositoryLocation)
Adds the metadata repository at the given location.
|
void |
addMetadataRepository(java.net.URI metadataRepository)
Adds the metadata repository at the given location.
|
java.util.List<java.net.URI> |
getArtifactRepositories()
Returns the list of artifact repositories in the order in which they were added.
|
java.util.List<java.net.URI> |
getMetadataRepositories()
Returns the list of metadata repositories in the order in which they were added.
|
private final java.util.List<java.net.URI> metadataRepos
private final java.util.List<java.net.URI> artifactRepos
public void addMetadataRepository(java.io.File metadataRepositoryLocation)
metadataRepositoryLocation
- The folder containing the metadata repository file (content.xml
or
content.jar
)public void addMetadataRepository(java.net.URI metadataRepository)
metadataRepositoryLocation
- A URL pointing to a p2 metadata repositorypublic void addArtifactRepository(java.io.File artifactRepositoryLocation)
artifactRepositoryLocation
- The folder containing the artifact repository file structurepublic void addArtifactRepository(java.net.URI artifactRepository)
artifactRepositoryLocation
- A URL pointing to a p2 artifact repositorypublic void addArtifactRepository(RepositoryBlackboardKey blackboardKey)
artifactRepositoryLocation
- A key identifying a repository registered on the artifact repository blackboard.public java.util.List<java.net.URI> getMetadataRepositories()
public java.util.List<java.net.URI> getArtifactRepositories()