public class PersistencyManager extends Object
Constructor and Description |
---|
PersistencyManager(File root) |
Modifier and Type | Method and Description |
---|---|
void |
delete(String name)
Deletes a resource.
|
List<String> |
getResourceNames()
Returns the names of all persisted resources.
|
List<AutoConfResource> |
load(String name)
Loads a stored resource.
|
void |
store(String name,
List<AutoConfResource> configs)
Stores a resource.
|
public PersistencyManager(File root)
public void delete(String name) throws IOException
name
- Name of the resource.IOException
- If the resource could not be deleted.public List<String> getResourceNames()
null
.public List<AutoConfResource> load(String name) throws IOException
name
- Name of the resource.AutoConfResource
s representing the specified resource, if the resource is unknown an empty list is returned.IOException
- If the resource could not be properly read.public void store(String name, List<AutoConfResource> configs) throws IOException
name
- Name of the resource.configs
- List of AutoConfResource
s representing the specified resource.IOException
- If the resource could not be stored.Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.