org.jivesoftware.sparkimpl.settings.local
Class SettingsManager

java.lang.Object
  extended by org.jivesoftware.sparkimpl.settings.local.SettingsManager

public class SettingsManager
extends java.lang.Object

Responsbile for the loading and persisting of LocalSettings.


Method Summary
static void addPreferenceListener(PreferenceListener listener)
           
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 removePreferenceListener(PreferenceListener listener)
           
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.

addPreferenceListener

public static void addPreferenceListener(PreferenceListener listener)

removePreferenceListener

public static void removePreferenceListener(PreferenceListener listener)