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 boolean
contains(org.eclipse.equinox.p2.metadata.IArtifactKey key)
Returnstrue
if this is a provider for the given artifact.boolean
contains(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor)
Returnstrue
if this a provider for an artifact in the given formatprotected 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()
-
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:IArtifactProvider
Returnstrue
if this is a provider for the given artifact.- Specified by:
contains
in interfaceIArtifactProvider
- Parameters:
key
- An artifact key- Returns:
true
if 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:IRawArtifactProvider
Returnstrue
if this a provider for an artifact in the given format- Specified by:
contains
in interfaceIRawArtifactProvider
- Parameters:
descriptor
- An artifact descriptor- Returns:
true
if 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:
getArtifactDescriptorsOfAllSources
in classCompositeArtifactProviderBaseImpl
-
getArtifactFromAnySource
protected void getArtifactFromAnySource(IArtifactSink sink, List<org.eclipse.core.runtime.IStatus> statusCollector, org.eclipse.core.runtime.IProgressMonitor monitor) throws ArtifactSinkException
- Specified by:
getArtifactFromAnySource
in 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:
getRawArtifactFromAnySource
in classCompositeArtifactProviderBaseImpl
- Throws:
ArtifactSinkException
-
getArtifactNotFoundError
protected org.eclipse.core.runtime.Status getArtifactNotFoundError(String artifact)
- Specified by:
getArtifactNotFoundError
in 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:
query
in interfaceorg.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>
-
-