public class Repository
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
Repository.TempDirRemover |
Modifier and Type | Field and Description |
---|---|
private org.eclipse.equinox.p2.repository.artifact.IArtifactRepository |
artifactRepository |
private java.nio.file.Path |
location |
private org.eclipse.equinox.p2.repository.metadata.IMetadataRepository |
metadataRepository |
private static java.nio.file.Path |
tempDir |
Modifier | Constructor and Description |
---|---|
private |
Repository(java.nio.file.Path location,
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository,
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository) |
Modifier and Type | Method and Description |
---|---|
static Repository |
create(java.nio.file.Path location) |
static Repository |
createTemp() |
private static java.nio.file.Path |
createTempDirectory() |
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
executeQuery(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query) |
java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> |
getAllUnits() |
org.eclipse.equinox.p2.repository.artifact.IArtifactRepository |
getArtifactRepository() |
org.eclipse.equinox.p2.internal.repository.tools.RepositoryDescriptor |
getDescripror() |
java.nio.file.Path |
getLocation() |
org.eclipse.equinox.p2.repository.metadata.IMetadataRepository |
getMetadataRepository() |
static Repository |
load(java.nio.file.Path location) |
private static java.nio.file.Path tempDir
private final java.nio.file.Path location
private final org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository
private final org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository
private Repository(java.nio.file.Path location, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactRepository, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataRepository)
public static Repository createTemp() throws org.eclipse.equinox.p2.core.ProvisionException, java.io.IOException
org.eclipse.equinox.p2.core.ProvisionException
java.io.IOException
public static Repository create(java.nio.file.Path location) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
public static Repository load(java.nio.file.Path location) throws org.eclipse.equinox.p2.core.ProvisionException
org.eclipse.equinox.p2.core.ProvisionException
public java.nio.file.Path getLocation()
public org.eclipse.equinox.p2.repository.artifact.IArtifactRepository getArtifactRepository()
public org.eclipse.equinox.p2.repository.metadata.IMetadataRepository getMetadataRepository()
public org.eclipse.equinox.p2.internal.repository.tools.RepositoryDescriptor getDescripror()
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> executeQuery(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query)
public java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getAllUnits()
private static java.nio.file.Path createTempDirectory() throws java.io.IOException
java.io.IOException