Class AbstractMavenMetadataRepository

  • 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.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
    Direct Known Subclasses:
    LocalMetadataRepository, MavenMetadataRepository

    public abstract class AbstractMavenMetadataRepository
    extends org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository
    • 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
      protected RepositoryReader contentLocator  
      protected TychoRepositoryIndex metadataIndex  
      protected Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units  
      protected Map<GAV,​Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>> unitsMap  
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Map<GAV,​Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>> getGAVs()
      For testing purposes only
      Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()  
      void initialize​(org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository.RepositoryState state)  
      protected void load()  
      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)  
      • 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 interface org.eclipse.core.runtime.IAdaptable

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

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

      • units

        protected Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units
      • unitsMap

        protected Map<GAV,​Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>> unitsMap
    • Method Detail

      • load

        protected void load()
      • 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
      • 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)
      • getGAVs

        public Map<GAV,​Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>> getGAVs()
        For testing purposes only
      • getReferences

        public Collection<org.eclipse.equinox.p2.repository.IRepositoryReference> getReferences()