Package org.eclipse.tycho.p2maven
Class ListCompositeArtifactRepository
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
org.eclipse.tycho.p2maven.ListCompositeArtifactRepository
- All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable,org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>,org.eclipse.equinox.p2.repository.artifact.IArtifactRepository,org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository,org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>,org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
public class ListCompositeArtifactRepository
extends org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
implements org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>, org.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
A
ICompositeRepository/ IArtifactRepository that is backed by a simple list, in
contrast to the default P2 this does not require any access to the repository manager and simply
aggregates all data, besides this, it also implements IFileArtifactRepository on top-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<org.eclipse.equinox.p2.repository.artifact.IArtifactRepository>Fields inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
CODE_RETRY, PROP_RUNNABLEFields inherited from interface org.eclipse.equinox.p2.repository.IRepository
ENABLED, NONE, PREFERENCE_NODE, PROP_COMPRESSED, PROP_DESCRIPTION, PROP_MIRRORS_BASE_URL, PROP_MIRRORS_URL, PROP_NAME, PROP_NICKNAME, PROP_PASSWORD, PROP_SYSTEM, PROP_TIMESTAMP, PROP_USERNAME, TYPE_ARTIFACT, TYPE_METADATA -
Constructor Summary
ConstructorsConstructorDescriptionListCompositeArtifactRepository(List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> artifactRepositories, org.eclipse.equinox.p2.core.IProvisioningAgent agent) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleancontains(org.eclipse.equinox.p2.metadata.IArtifactKey key) booleancontains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor>org.eclipse.core.runtime.IStatusgetArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor) org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[]getArtifactDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key) getArtifactFile(org.eclipse.equinox.p2.metadata.IArtifactKey key) getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) org.eclipse.core.runtime.IStatusgetArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests, org.eclipse.core.runtime.IProgressMonitor monitor) getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) org.eclipse.core.runtime.IStatusgetRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor) org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey>query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query, org.eclipse.core.runtime.IProgressMonitor monitor) voidvoidremoveChild(URI child) Methods inherited from class org.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
addDescriptor, addDescriptor, addDescriptors, addDescriptors, createArtifactDescriptor, createArtifactKey, equals, executeBatch, hashCode, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptorsMethods 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, setVersionMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.equinox.p2.repository.artifact.IArtifactRepository
addDescriptor, addDescriptor, addDescriptors, addDescriptors, createArtifactDescriptor, createArtifactKey, executeBatch, removeAll, removeAll, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptor, removeDescriptors, removeDescriptors, removeDescriptors, removeDescriptorsMethods inherited from interface org.eclipse.equinox.p2.repository.IRepository
getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setProperty, setProperty
-
Field Details
-
artifactRepositories
public final List<org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> artifactRepositories
-
-
Constructor Details
-
ListCompositeArtifactRepository
public ListCompositeArtifactRepository(List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> artifactRepositories, org.eclipse.equinox.p2.core.IProvisioningAgent agent)
-
-
Method Details
-
query
public org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IArtifactKey> query(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IArtifactKey> query, org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
queryin interfaceorg.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>
-
getRawArtifact
public org.eclipse.core.runtime.IStatus getRawArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
getRawArtifactin interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository
-
descriptorQueryable
public org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> descriptorQueryable()- Specified by:
descriptorQueryablein interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository
-
addChild
- Specified by:
addChildin interfaceorg.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
-
getChildren
- Specified by:
getChildrenin interfaceorg.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
-
removeAllChildren
public void removeAllChildren()- Specified by:
removeAllChildrenin interfaceorg.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
-
removeChild
- Specified by:
removeChildin interfaceorg.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IArtifactKey>
-
contains
public boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) - Specified by:
containsin interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository- Specified by:
containsin classorg.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
-
contains
public boolean contains(org.eclipse.equinox.p2.metadata.IArtifactKey key) - Specified by:
containsin interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository- Specified by:
containsin classorg.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
-
getArtifact
public org.eclipse.core.runtime.IStatus getArtifact(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, OutputStream destination, org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
getArtifactin interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository- Specified by:
getArtifactin classorg.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
-
getArtifactDescriptors
public org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor[] getArtifactDescriptors(org.eclipse.equinox.p2.metadata.IArtifactKey key) - Specified by:
getArtifactDescriptorsin interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository- Specified by:
getArtifactDescriptorsin classorg.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
-
getArtifacts
public org.eclipse.core.runtime.IStatus getArtifacts(org.eclipse.equinox.p2.repository.artifact.IArtifactRequest[] requests, org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
getArtifactsin interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository- Specified by:
getArtifactsin classorg.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository
-
getOutputStream
public OutputStream getOutputStream(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) throws org.eclipse.equinox.p2.core.ProvisionException - Specified by:
getOutputStreamin interfaceorg.eclipse.equinox.p2.repository.artifact.IArtifactRepository- Specified by:
getOutputStreamin classorg.eclipse.equinox.p2.repository.artifact.spi.AbstractArtifactRepository- Throws:
org.eclipse.equinox.p2.core.ProvisionException
-
getArtifactFile
- Specified by:
getArtifactFilein interfaceorg.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
-
getArtifactFile
public File getArtifactFile(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor) - Specified by:
getArtifactFilein interfaceorg.eclipse.equinox.p2.repository.artifact.IFileArtifactRepository
-