public abstract class AbstractJiraHomeDatabaseConfigurationLoader extends Object implements DatabaseConfigurationLoader
Modifier and Type | Field and Description |
---|---|
static String |
FILENAME_DBCONFIG |
Constructor and Description |
---|
AbstractJiraHomeDatabaseConfigurationLoader() |
Modifier and Type | Method and Description |
---|---|
boolean |
configExists()
Returns true only if the database configuration file already exists in the JIRA home directory.
|
protected abstract String |
getJiraHome() |
DatabaseConfig |
loadDatabaseConfiguration()
Reads and deserialises the
DatabaseConfig from its permanent store. |
protected abstract void |
logInfo(String message) |
void |
saveDatabaseConfiguration(DatabaseConfig config)
Serialises and persists the given config to its permanent store.
|
public static final String FILENAME_DBCONFIG
public AbstractJiraHomeDatabaseConfigurationLoader()
public boolean configExists()
DatabaseConfigurationLoader
configExists
in interface DatabaseConfigurationLoader
public DatabaseConfig loadDatabaseConfiguration()
DatabaseConfigurationLoader
DatabaseConfig
from its permanent store.loadDatabaseConfiguration
in interface DatabaseConfigurationLoader
public void saveDatabaseConfiguration(DatabaseConfig config)
DatabaseConfigurationLoader
saveDatabaseConfiguration
in interface DatabaseConfigurationLoader
config
- the config to store.protected abstract String getJiraHome()
IllegalStateException
- if the JIRA home is not set.protected abstract void logInfo(String message)
Copyright © 2002-2015 Atlassian. All Rights Reserved.