com.atlassian.jira.configurator.config
Class SettingsLoader
java.lang.Object
com.atlassian.jira.configurator.config.SettingsLoader
public class SettingsLoader
- extends Object
Loads current settings from the relevant files.
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SettingsLoader
public SettingsLoader()
loadCurrentSettings
public static Settings loadCurrentSettings()
throws ParserConfigurationException,
IOException,
SAXException,
ParseException
- Throws:
ParserConfigurationException
IOException
SAXException
ParseException
saveSettings
public static void saveSettings(Settings newSettings)
throws IOException,
ParseException
- 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
public static Settings reloadDbConfig(String jiraHome)
throws IOException
- 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.
Copyright © 2002-2012 Atlassian. All Rights Reserved.