Class AbstractMetadataRepository2
- java.lang.Object
-
- org.eclipse.core.runtime.PlatformObject
-
- org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
-
- org.eclipse.tycho.p2.maven.repository.AbstractMetadataRepository2
-
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable
,org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>
,org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
,org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
- Direct Known Subclasses:
ModuleMetadataRepository
public abstract class AbstractMetadataRepository2 extends org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit> implements org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
More reasonable base class for Tycho's metadata repositories thanAbstractMetadataRepository
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMetadataRepository2(org.eclipse.equinox.p2.core.IProvisioningAgent agent, java.lang.String name, java.lang.String type, java.io.File location)
Creates a metadata repository with the provided parameters (and some default values that are reasonable for Tycho).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addReferences(java.util.Collection<? extends org.eclipse.equinox.p2.repository.IRepositoryReference> references)
void
compress(org.eclipse.equinox.p2.core.IPool<org.eclipse.equinox.p2.metadata.IInstallableUnit> iuPool)
org.eclipse.core.runtime.IStatus
executeBatch(org.eclipse.equinox.p2.repository.IRunnableWithProgress runnable, org.eclipse.core.runtime.IProgressMonitor monitor)
java.util.Collection<org.eclipse.equinox.p2.repository.IRepositoryReference>
getReferences()
-
Methods inherited from class org.eclipse.equinox.p2.repository.spi.AbstractRepository
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setDescription, setLocation, setName, setProperties, setProperty, setProperty, setProvider, setType, setVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
AbstractMetadataRepository2
protected AbstractMetadataRepository2(org.eclipse.equinox.p2.core.IProvisioningAgent agent, java.lang.String name, java.lang.String type, java.io.File location)
Creates a metadata repository with the provided parameters (and some default values that are reasonable for Tycho).- Parameters:
agent
- the provisioning agent that may be used by repositoryname
- the name of the repositorytype
- the repository type as inIMetadataRepositoryManager.createRepository(URI, String, String, java.util.Map)
location
- the physical location of the repository
-
-
Method Detail
-
addReferences
public void addReferences(java.util.Collection<? extends org.eclipse.equinox.p2.repository.IRepositoryReference> references)
- Specified by:
addReferences
in interfaceorg.eclipse.equinox.p2.repository.metadata.IMetadataRepository
-
getReferences
public java.util.Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()
- Specified by:
getReferences
in interfaceorg.eclipse.equinox.p2.repository.metadata.IMetadataRepository
-
executeBatch
public org.eclipse.core.runtime.IStatus executeBatch(org.eclipse.equinox.p2.repository.IRunnableWithProgress runnable, org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
executeBatch
in interfaceorg.eclipse.equinox.p2.repository.metadata.IMetadataRepository
-
compress
public void compress(org.eclipse.equinox.p2.core.IPool<org.eclipse.equinox.p2.metadata.IInstallableUnit> iuPool)
- Specified by:
compress
in interfaceorg.eclipse.equinox.p2.repository.metadata.IMetadataRepository
-
-