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, getResourceIndexpublic 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
RepositoryStorageaddResource in interface RepositoryStorageaddResource in class MemoryRepositoryStorageres - The resource to addRepositoryStorageException - If there is a problem storing the resourcepublic boolean removeResource(org.jboss.osgi.resolver.XResource res)
throws RepositoryStorageException
RepositoryStorageremoveResource in interface RepositoryStorageremoveResource in class MemoryRepositoryStorageres - The resource to removeRepositoryStorageException - If there is a problem removing the resource from storageCopyright © 2013 JBoss by Red Hat. All rights reserved.