com.limegroup.gnutella.settings
Class SettingsHandler

java.lang.Object
  extended bycom.limegroup.gnutella.settings.SettingsHandler

public final class SettingsHandler
extends java.lang.Object

Controls access to all Settings classes, providing easy ways to reload, save, revert, etc.. all of them at once time.


Method Summary
static void addSettings(AbstractSettings setting)
          Adds a settings class to the list of factories that this handler will act upon.
static void reload()
          Reload settings from both the property and configuration files.
static void removeSettings(AbstractSettings setting)
          Removes a settings class from the list of factories that this handler will act upon.
static void revertToDefault()
          Revert all settings to their default value.
static void save()
          Save property settings to the property file.
static void setShouldSave(boolean shouldSave)
          Mutator for shouldSave.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addSettings

public static void addSettings(AbstractSettings setting)
Adds a settings class to the list of factories that this handler will act upon.


removeSettings

public static void removeSettings(AbstractSettings setting)
Removes a settings class from the list of factories that this handler will act upon.


reload

public static void reload()
Reload settings from both the property and configuration files.


save

public static void save()
Save property settings to the property file.


revertToDefault

public static void revertToDefault()
Revert all settings to their default value.


setShouldSave

public static void setShouldSave(boolean shouldSave)
Mutator for shouldSave.