|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DatabaseConfigurationLoader
DatabaseConfigurationLoader is responsible for loading and persisting database configuration from and to the home directory.
Method Summary | |
---|---|
boolean |
configExists()
Returns true only if the database configuration file already exists in the JIRA home directory. |
DatabaseConfig |
loadDatabaseConfiguration()
Reads and deserialises the DatabaseConfig from its permanent store. |
void |
saveDatabaseConfiguration(DatabaseConfig config)
Serialises and persists the given config to its permanent store. |
Method Detail |
---|
boolean configExists()
DatabaseConfig loadDatabaseConfiguration() throws RuntimeException, RuntimeIOException
DatabaseConfig
from its permanent store.
RuntimeIOException
- if the config cannot be loaded due to a missing file or bad permissions.
RuntimeException
- if the config cannot be loaded for example due to a corrupt file format.void saveDatabaseConfiguration(DatabaseConfig config) throws RuntimeIOException
config
- the config to store.
RuntimeIOException
- if there was some IO problem saving.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |