public final class SettingsManager extends Object
Modifier and Type | Method and Description |
---|---|
void |
addSettingsListener(SettingsListener listener)
Registers the listener with the manager
|
void |
configure(SettingsListener listener) |
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
|
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
|
public static SettingsManager getInstance()
public void addSettingsListener(SettingsListener listener)
listener
- public void loadSettings()
public void saveSettings()
public File getSettingsDirectory()
public void configure(SettingsListener listener)
public Properties getDefaultSettings()
Copyright © 2002-2018 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache Chainsaw, Chainsaw, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.