public class RepositoryArtifactProvider extends CompositeArtifactProviderBaseImpl implements IRawArtifactProvider
| Constructor and Description |
|---|
RepositoryArtifactProvider(List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> repositories,
ArtifactTransferPolicy transferPolicy) |
RepositoryArtifactProvider(List<URI> artifactRepositories,
ArtifactTransferPolicy transferPolicy,
org.eclipse.equinox.p2.core.IProvisioningAgent agent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returns
true if this a provider for an artifact in the given format |
boolean |
contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returns
true if this is a provider for the given artifact. |
protected void |
getArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key,
Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result) |
protected void |
getArtifactFromAnySource(IArtifactSink sink,
List<org.eclipse.core.runtime.IStatus> statusCollector,
org.eclipse.core.runtime.IProgressMonitor monitor) |
protected org.eclipse.core.runtime.Status |
getArtifactNotFoundError(String artifact) |
protected void |
getRawArtifactFromAnySource(IRawArtifactSink sink,
org.eclipse.core.runtime.IProgressMonitor monitor,
List<org.eclipse.core.runtime.IStatus> statusCollector) |
protected void |
init() |
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) |
protected void |
repositoriesLoaded() |
getArtifact, getArtifactDescriptors, getRawArtifact, isFatal, nonNullclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetArtifactDescriptors, getRawArtifactgetArtifactpublic RepositoryArtifactProvider(List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> repositories, ArtifactTransferPolicy transferPolicy)
public RepositoryArtifactProvider(List<URI> artifactRepositories, ArtifactTransferPolicy transferPolicy, org.eclipse.equinox.p2.core.IProvisioningAgent agent)
protected void init()
protected void repositoriesLoaded()
public boolean contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
IArtifactProvidertrue if this is a provider for the given artifact.contains in interface IArtifactProviderkey - An artifact keytrue if this instance can provide the artifact for the given keypublic boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
IRawArtifactProvidertrue if this a provider for an artifact in the given formatcontains in interface IRawArtifactProviderdescriptor - An artifact descriptortrue if this instance can provide the artifact as raw artifact in the
described formatprotected void getArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key,
Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result)
getArtifactDescriptorsOfAllSources in class CompositeArtifactProviderBaseImplprotected void getArtifactFromAnySource(IArtifactSink sink, List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
getArtifactFromAnySource in class CompositeArtifactProviderBaseImplArtifactSinkExceptionprotected void getRawArtifactFromAnySource(IRawArtifactSink sink, org.eclipse.core.runtime.IProgressMonitor monitor, List<org.eclipse.core.runtime.IStatus> statusCollector) throws ArtifactSinkException
getRawArtifactFromAnySource in class CompositeArtifactProviderBaseImplArtifactSinkExceptionprotected org.eclipse.core.runtime.Status getArtifactNotFoundError(String artifact)
getArtifactNotFoundError in class CompositeArtifactProviderBaseImplpublic 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)
query in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>Copyright © 2008-2015 Eclipse Foundation. All Rights Reserved.