com.jivesoftware.sparkimpl.settings.local
Class SettingsManager

java.lang.Object
  extended bycom.jivesoftware.sparkimpl.settings.local.SettingsManager

public class SettingsManager
extends java.lang.Object

Responsbile for the loading and persisting of LocalSettings.


Method Summary
static boolean exists()
          Return true if the settings file exists.
static LocalPreferences getLocalPreferences()
          Returns the LocalPreferences for this agent.
static java.io.File getSettingsFile()
          Returns the settings file.
static void saveSettings()
          Persists the settings to the local file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLocalPreferences

public static LocalPreferences getLocalPreferences()
Returns the LocalPreferences for this agent.

Returns:
the LocalPreferences for this agent.

saveSettings

public static void saveSettings()
Persists the settings to the local file system.


exists

public static boolean exists()
Return true if the settings file exists.

Returns:
true if the settings file exists.('settings.xml')

getSettingsFile

public static java.io.File getSettingsFile()
Returns the settings file.

Returns:
the settings file.