|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
IConfigurationPersistenceEngine
Interface to create a persistence layer for an application configuration. Implementing classes only have to pay attention on how to retrieve/store the configuration from/to the applied persistent medium. Theretrieve()
method is used to fetch the data from a persistent medium and store it in a
Map using the key/value schema. The persist() method
however is responsible for storing the updated configuration data back to the
persistent medium.
| Method Summary | |
void |
persist()
Writes the configuration back to a persistent medium, e.g. a file, a database etc. |
Map |
retrieve()
Retrieves the configuration data from the persistent medium and deposits it in a Map.
|
| Method Detail |
public Map retrieve()
throws PersistenceException
Retrieves the configuration data from the persistent medium and deposits
it in a Map.
Map cotaining a list of key/value pairs holding
the settings from the persistent medium
PersistenceException - if an error occured while retrieving the
configuration data from the persistent medium
public void persist()
throws PersistenceException
Writes the configuration back to a persistent medium, e.g. a file, a database etc.
PersistenceException - if an error occured while writing the
configuration back to the persistent medium
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||