public abstract class

AbstractJiraHomeDatabaseConfigurationLoader

extends Object
implements DatabaseConfigurationLoader
java.lang.Object
   ↳ com.atlassian.jira.config.database.AbstractJiraHomeDatabaseConfigurationLoader
Known Direct Subclasses

Class Overview

Base implementation of DatabaseConfigurationLoader for loading Database Configuration from jira-home.

Summary

Constants
String FILENAME_DBCONFIG
Public Constructors
AbstractJiraHomeDatabaseConfigurationLoader()
Public Methods
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.
Protected Methods
abstract String getJiraHome()
abstract void logInfo(String message)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.config.database.DatabaseConfigurationLoader

Constants

public static final String FILENAME_DBCONFIG

Constant Value: "dbconfig.xml"

Public Constructors

public AbstractJiraHomeDatabaseConfigurationLoader ()

Public Methods

public boolean configExists ()

Returns true only if the database configuration file already exists in the JIRA home directory.

Returns
  • whether the config file exists.

public DatabaseConfig loadDatabaseConfiguration ()

Reads and deserialises the DatabaseConfig from its permanent store.

Returns
  • the database configuration.

public void saveDatabaseConfiguration (DatabaseConfig config)

Serialises and persists the given config to its permanent store.

Parameters
config the config to store.

Protected Methods

protected abstract String getJiraHome ()

Returns
  • path to jira's home
Throws
IllegalStateException if the JIRA home is not set.

protected abstract void logInfo (String message)