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 |
|---|---|
XResource |
addResource(XResource res)
Add the given resource to storage
|
boolean |
removeResource(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 XResource addResource(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(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 © 2016 JBoss by Red Hat. All rights reserved.