Class ListCompositeMetadataRepository

  • All Implemented Interfaces:
    org.eclipse.core.runtime.IAdaptable, org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository

    public class ListCompositeMetadataRepository
    extends org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository
    implements org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
    A ICompositeRepository/ IMetadataRepository 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
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository

        org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository.RepositoryState
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<? extends org.eclipse.equinox.p2.repository.metadata.IMetadataRepository> metadataRepositories  
      • Fields 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

      Constructors 
      Constructor Description
      ListCompositeMetadataRepository​(java.util.List<? extends org.eclipse.equinox.p2.repository.metadata.IMetadataRepository> metadataRepositories, org.eclipse.equinox.p2.core.IProvisioningAgent agent)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(java.net.URI child)  
      java.util.List<java.net.URI> getChildren()  
      java.util.Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()  
      void initialize​(org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository.RepositoryState state)  
      org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IInstallableUnit> query​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query, org.eclipse.core.runtime.IProgressMonitor monitor)  
      void removeAllChildren()  
      void removeChild​(java.net.URI child)  
      • Methods inherited from class org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository

        addInstallableUnits, addReferences, compress, executeBatch, removeAll, removeInstallableUnits
      • Methods 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, setVersion
      • Methods inherited from class org.eclipse.core.runtime.PlatformObject

        getAdapter
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.core.runtime.IAdaptable

        getAdapter
      • Methods inherited from interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository

        addInstallableUnits, addReferences, compress, executeBatch, removeAll, removeInstallableUnits
      • Methods inherited from interface org.eclipse.equinox.p2.repository.IRepository

        getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, isModifiable, setProperty, setProperty
    • Field Detail

      • metadataRepositories

        private java.util.List<? extends org.eclipse.equinox.p2.repository.metadata.IMetadataRepository> metadataRepositories
    • Constructor Detail

      • ListCompositeMetadataRepository

        public ListCompositeMetadataRepository​(java.util.List<? extends org.eclipse.equinox.p2.repository.metadata.IMetadataRepository> metadataRepositories,
                                               org.eclipse.equinox.p2.core.IProvisioningAgent agent)
    • Method Detail

      • query

        public org.eclipse.equinox.p2.query.IQueryResult<org.eclipse.equinox.p2.metadata.IInstallableUnit> query​(org.eclipse.equinox.p2.query.IQuery<org.eclipse.equinox.p2.metadata.IInstallableUnit> query,
                                                                                                                 org.eclipse.core.runtime.IProgressMonitor monitor)
        Specified by:
        query in interface org.eclipse.equinox.p2.query.IQueryable<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • getReferences

        public java.util.Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()
        Specified by:
        getReferences in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
      • addChild

        public void addChild​(java.net.URI child)
        Specified by:
        addChild in interface org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • getChildren

        public java.util.List<java.net.URI> getChildren()
        Specified by:
        getChildren in interface org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • removeAllChildren

        public void removeAllChildren()
        Specified by:
        removeAllChildren in interface org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • removeChild

        public void removeChild​(java.net.URI child)
        Specified by:
        removeChild in interface org.eclipse.equinox.p2.repository.ICompositeRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
      • initialize

        public void initialize​(org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository.RepositoryState state)
        Specified by:
        initialize in class org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository