Class SettingsLoader
java.lang.Object
com.atlassian.jira.configurator.config.SettingsLoader
Loads current settings from the relevant files.
- Since:
- v4.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Settingsstatic SettingsreloadDbConfig(String jiraHome) Used to reload DB Config after the user changes the jira-home.static voidsaveSettings(Settings newSettings) Saves the user's new settings back to the required files
-
Constructor Details
-
SettingsLoader
public SettingsLoader()
-
-
Method Details
-
loadCurrentSettings
public static Settings loadCurrentSettings() throws ParserConfigurationException, IOException, SAXException, ParseException -
saveSettings
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
-
reloadDbConfig
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.
-