public class

SettingsLoader

extends Object
java.lang.Object
   ↳ com.atlassian.jira.configurator.config.SettingsLoader

Class Overview

Loads current settings from the relevant files.

Summary

Public Constructors
SettingsLoader()
Public Methods
static Settings loadCurrentSettings()
static Settings reloadDbConfig(String jiraHome)
Used to reload DB Config after the user changes the jira-home.
static void saveSettings(Settings newSettings)
Saves the user's new settings back to the required files
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SettingsLoader ()

Public Methods

public static Settings loadCurrentSettings ()

Throws
IOException
ParseException
ParserConfigurationException
SAXException

public static Settings reloadDbConfig (String jiraHome)

Used to reload DB Config after the user changes the jira-home.

Parameters
jiraHome the new jira-home
Returns
  • the new DB Settings (other settings will be blank)
Throws
IOException if an error occurrs while reading or parsing the dbconfig file.

public static void saveSettings (Settings newSettings)

Saves the user's new settings back to the required files

Parameters
newSettings The new settings to save
Throws
IOException If any errors occur.
ParseException if processing of the xml file failed