Interface DatabaseConfigurationLoader
- All Known Implementing Classes:
AbstractJiraHomeDatabaseConfigurationLoader
,JiraHomeDatabaseConfigurationLoader
,SystemDatabaseConfigurationLoader
public interface DatabaseConfigurationLoader
DatabaseConfigurationLoader is responsible for loading and persisting database configuration from and to the home
directory.
- Since:
- v4.4
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true only if the database configuration file already exists in the JIRA home directory.Reads and deserialises theDatabaseConfig
from its permanent store.void
Serialises and persists the given config to its permanent store.
-
Method Details
-
configExists
boolean configExists()Returns true only if the database configuration file already exists in the JIRA home directory.- Returns:
- whether the config file exists.
-
loadDatabaseConfiguration
Reads and deserialises theDatabaseConfig
from its permanent store.- Returns:
- the database configuration.
- Throws:
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.
-
saveDatabaseConfiguration
Serialises and persists the given config to its permanent store.- Parameters:
config
- the config to store.- Throws:
RuntimeIOException
- if there was some IO problem saving.
-