Class RepositoryArtifactProvider
- java.lang.Object
-
- org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProviderBaseImpl
-
- org.eclipse.tycho.repository.p2base.artifact.repository.RepositoryArtifactProvider
-
- All Implemented Interfaces:
org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>,IArtifactProvider,IRawArtifactProvider
- Direct Known Subclasses:
FileRepositoryArtifactProvider
public class RepositoryArtifactProvider extends CompositeArtifactProviderBaseImpl implements IRawArtifactProvider
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(org.eclipse.equinox.p2.metadata.IArtifactKey key)Returnstrueif this is a provider for the given artifact.booleancontains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)Returnstrueif this a provider for an artifact in the given formatprotected voidgetArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key, Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result)protected voidgetArtifactFromAnySource(IArtifactSink sink, List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor)protected org.eclipse.core.runtime.StatusgetArtifactNotFoundError(String artifact)protected voidgetRawArtifactFromAnySource(IRawArtifactSink sink, org.eclipse.core.runtime.IProgressMonitor monitor, List<org.eclipse.core.runtime.IStatus> statusCollector)protected voidinit()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 voidrepositoriesLoaded()-
Methods inherited from class org.eclipse.tycho.repository.p2base.artifact.provider.CompositeArtifactProviderBaseImpl
getArtifact, getArtifactDescriptors, getRawArtifact, isFatal, nonNull
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.tycho.repository.p2base.artifact.provider.IArtifactProvider
getArtifact
-
Methods inherited from interface org.eclipse.tycho.repository.p2base.artifact.provider.IRawArtifactProvider
getArtifactDescriptors, getRawArtifact
-
-
-
-
Constructor Detail
-
RepositoryArtifactProvider
public RepositoryArtifactProvider(List<? extends org.eclipse.equinox.p2.repository.artifact.IArtifactRepository> repositories, ArtifactTransferPolicy transferPolicy)
-
RepositoryArtifactProvider
public RepositoryArtifactProvider(List<URI> artifactRepositories, ArtifactTransferPolicy transferPolicy, org.eclipse.equinox.p2.core.IProvisioningAgent agent)
-
-
Method Detail
-
init
protected void init()
-
repositoriesLoaded
protected void repositoriesLoaded()
-
contains
public boolean contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Description copied from interface:IArtifactProviderReturnstrueif this is a provider for the given artifact.- Specified by:
containsin interfaceIArtifactProvider- Parameters:
key- An artifact key- Returns:
trueif this instance can provide the artifact for the given key
-
contains
public boolean contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Description copied from interface:IRawArtifactProviderReturnstrueif this a provider for an artifact in the given format- Specified by:
containsin interfaceIRawArtifactProvider- Parameters:
descriptor- An artifact descriptor- Returns:
trueif this instance can provide the artifact as raw artifact in the described format
-
getArtifactDescriptorsOfAllSources
protected void getArtifactDescriptorsOfAllSources(org.eclipse.equinox.p2.metadata.IArtifactKey key, Set<org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor> result)- Specified by:
getArtifactDescriptorsOfAllSourcesin classCompositeArtifactProviderBaseImpl
-
getArtifactFromAnySource
protected void getArtifactFromAnySource(IArtifactSink sink, List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
- Specified by:
getArtifactFromAnySourcein classCompositeArtifactProviderBaseImpl- Throws:
ArtifactSinkException
-
getRawArtifactFromAnySource
protected void getRawArtifactFromAnySource(IRawArtifactSink sink, org.eclipse.core.runtime.IProgressMonitor monitor, List<org.eclipse.core.runtime.IStatus> statusCollector) throws ArtifactSinkException
- Specified by:
getRawArtifactFromAnySourcein classCompositeArtifactProviderBaseImpl- Throws:
ArtifactSinkException
-
getArtifactNotFoundError
protected org.eclipse.core.runtime.Status getArtifactNotFoundError(String artifact)
- Specified by:
getArtifactNotFoundErrorin classCompositeArtifactProviderBaseImpl
-
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>
-
-