org.sonatype.tycho.p2.maven.repository
Class LocalMetadataRepository

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
          extended by org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository
              extended by org.sonatype.tycho.p2.maven.repository.AbstractMavenMetadataRepository
                  extended by org.sonatype.tycho.p2.maven.repository.LocalMetadataRepository
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

public class LocalMetadataRepository
extends AbstractMavenMetadataRepository


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 inherited from class org.sonatype.tycho.p2.maven.repository.AbstractMavenMetadataRepository
contentLocator, projectIndex, units, 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
 
Constructor Summary
LocalMetadataRepository(URI location, String name)
          Create new repository
LocalMetadataRepository(URI location, TychoRepositoryIndex projectIndex, RepositoryReader contentLocator)
          Local existing repository
 
Method Summary
 void addInstallableUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit, GAV gav)
           
 void addInstallableUnits(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> newUnits)
           
 boolean isModifiable()
           
 void save()
           
 
Methods inherited from class org.sonatype.tycho.p2.maven.repository.AbstractMavenMetadataRepository
getGAVs, getReferences, initialize, load, query
 
Methods inherited from class org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository
addReferences, executeBatch, removeAll, removeInstallableUnits
 
Methods inherited from class org.eclipse.equinox.p2.repository.spi.AbstractRepository
assertModifiable, getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, setDescription, setLocation, setName, setProperties, 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.equinox.p2.repository.IRepository
getDescription, getLocation, getName, getProperties, getProperty, getProvider, getProvisioningAgent, getType, getVersion, setProperty
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Constructor Detail

LocalMetadataRepository

public LocalMetadataRepository(URI location,
                               String name)
Create new repository


LocalMetadataRepository

public LocalMetadataRepository(URI location,
                               TychoRepositoryIndex projectIndex,
                               RepositoryReader contentLocator)
Local existing repository

Method Detail

addInstallableUnits

public void addInstallableUnits(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> newUnits)
Specified by:
addInstallableUnits in interface org.eclipse.equinox.p2.repository.metadata.IMetadataRepository
Overrides:
addInstallableUnits in class org.eclipse.equinox.p2.repository.metadata.spi.AbstractMetadataRepository

addInstallableUnit

public void addInstallableUnit(org.eclipse.equinox.p2.metadata.IInstallableUnit unit,
                               GAV gav)

save

public void save()

isModifiable

public boolean isModifiable()
Specified by:
isModifiable in interface org.eclipse.equinox.p2.repository.IRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>
Overrides:
isModifiable in class org.eclipse.equinox.p2.repository.spi.AbstractRepository<org.eclipse.equinox.p2.metadata.IInstallableUnit>


Copyright © 2008-2011. All Rights Reserved.