Module com.gluonhq.attach.settings
Package com.gluonhq.attach.settings.impl
Class DesktopSettingsService
java.lang.Object
com.gluonhq.attach.settings.impl.DesktopSettingsService
- All Implemented Interfaces:
SettingsService
An implementation of SettingService that stores all settings in a Properties
file on the local file system.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DesktopSettingsService
public DesktopSettingsService()
-
-
Method Details
-
store
Description copied from interface:SettingsService
Stores the setting with the specified key and value. If a setting with the specified key exists, the value for that setting will be overwritten with the specified value.- Specified by:
store
in interfaceSettingsService
- Parameters:
key
- a key that uniquely identifies the settingvalue
- the value associated with the key
-
remove
Description copied from interface:SettingsService
Removes the setting for the specified key.- Specified by:
remove
in interfaceSettingsService
- Parameters:
key
- the key of the setting that needs to be removed
-
retrieve
Description copied from interface:SettingsService
Retrieves the value of the setting that is identified by the specified key.- Specified by:
retrieve
in interfaceSettingsService
- Parameters:
key
- the key of the setting to look up- Returns:
- the value associated with the setting or
null
when no setting was stored with the specified key
-