|
Log4j 1.3alpha-4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log4j.chainsaw.prefs.SettingsManager
SettingManager allows components to register interest in Saving/Loading of general application preferences/settings.
Method Summary | |
void |
addSettingsListener(SettingsListener listener)
Registers the listener with the manager |
void |
configure(SettingsListener listener)
|
java.util.Properties |
getDefaultSettings()
Returns the loaded default settings, which can be used by other classes within this package. |
static SettingsManager |
getInstance()
Returns the singleton instance of the SettingsManager |
java.io.File |
getSettingsDirectory()
|
void |
loadSettings()
Requests that the settings be loaded, all listeners will be notified of this call, and configure themselves according to the values found in the loaded settings |
void |
saveSettings()
Creates a SaveSettingsEvent and calls all the SettingsListeners to populate the properties with configuration information |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static final SettingsManager getInstance()
public void addSettingsListener(SettingsListener listener)
listener
- public void loadSettings()
public void saveSettings()
public java.io.File getSettingsDirectory()
public void configure(SettingsListener listener)
public java.util.Properties getDefaultSettings()
|
Log4j 1.3alpha-4 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |