com.atlassian.jira.configurator.config
Class SettingsLoader

java.lang.Object
  extended by com.atlassian.jira.configurator.config.SettingsLoader

public class SettingsLoader
extends Object

Loads current settings from the relevant files.

Since:
v4.0

Constructor Summary
SettingsLoader()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsLoader

public SettingsLoader()
Method Detail

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-2013 Atlassian. All Rights Reserved.