Class RepositoryArtifactProvider

    • 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
        Returns true if this is a provider for the given artifact.
        Specified by:
        contains in interface IArtifactProvider
        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
        Returns true if this a provider for an artifact in the given format
        Specified by:
        contains in interface IRawArtifactProvider
        Parameters:
        descriptor - An artifact descriptor
        Returns:
        true if this instance can provide the artifact as raw artifact in the described format
      • 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 interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IArtifactKey>