public class FileBasedRepositoryStorage extends MemoryRepositoryStorage
RepositoryStorage
that uses
the local file system.MemoryRepositoryStorage.Factory
Modifier and Type | Field and Description |
---|---|
static String |
REPOSITORY_XML_NAME |
Constructor and Description |
---|
FileBasedRepositoryStorage(XRepository repository,
File storageDir,
MavenIdentityRepository.ConfigurationPropertyProvider propProvider) |
Modifier and Type | Method and Description |
---|---|
org.jboss.osgi.resolver.XResource |
addResource(org.jboss.osgi.resolver.XResource res)
Add the given resource to storage
|
boolean |
removeResource(org.jboss.osgi.resolver.XResource res)
Remove a the given resource from the cache.
|
findProviders, getRepository, getRepositoryReader, getResource, getResourceIndex
public static final String REPOSITORY_XML_NAME
public FileBasedRepositoryStorage(XRepository repository, File storageDir, MavenIdentityRepository.ConfigurationPropertyProvider propProvider)
public org.jboss.osgi.resolver.XResource addResource(org.jboss.osgi.resolver.XResource res) throws RepositoryStorageException
RepositoryStorage
addResource
in interface RepositoryStorage
addResource
in class MemoryRepositoryStorage
res
- The resource to addRepositoryStorageException
- If there is a problem storing the resourcepublic boolean removeResource(org.jboss.osgi.resolver.XResource res) throws RepositoryStorageException
RepositoryStorage
removeResource
in interface RepositoryStorage
removeResource
in class MemoryRepositoryStorage
res
- The resource to removeRepositoryStorageException
- If there is a problem removing the resource from storageCopyright © 2013 JBoss by Red Hat. All rights reserved.