Package app.settings
Class SettingsProvider
java.lang.Object
app.settings.SettingsProvider
- All Implemented Interfaces:
SettingsProviderI
public class SettingsProvider extends java.lang.Object implements SettingsProviderI
A provider for permanent storage of the settings of the application.
-
Constructor Summary
Constructors Constructor Description SettingsProvider(com.google.common.eventbus.EventBus eB) -
Method Summary
Modifier and Type Method Description voidloadSettings()Load settings from disk, and fire events to update the program statevoidsaveSettings()Save the state fromModelto disk.voidsetEventBus(com.google.common.eventbus.EventBus eB)protected voidsetSettingsPath(java.lang.String settingsPath)Only for testing purposesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
SettingsProvider
public SettingsProvider(com.google.common.eventbus.EventBus eB)
-
-
Method Details
-
setSettingsPath
protected void setSettingsPath(java.lang.String settingsPath)Only for testing purposes -
setEventBus
public void setEventBus(com.google.common.eventbus.EventBus eB) -
loadSettings
public void loadSettings()Description copied from interface:SettingsProviderILoad settings from disk, and fire events to update the program state- Specified by:
loadSettingsin interfaceSettingsProviderI
-
saveSettings
public void saveSettings()Description copied from interface:SettingsProviderISave the state fromModelto disk.- Specified by:
saveSettingsin interfaceSettingsProviderI
-