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
    void loadSettings()
    Load settings from disk, and fire events to update the program state
    void saveSettings()
    Save the state from Model to disk.
    void setEventBus​(com.google.common.eventbus.EventBus eB)  
    protected void setSettingsPath​(java.lang.String settingsPath)
    Only for testing purposes

    Methods 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: SettingsProviderI
      Load settings from disk, and fire events to update the program state
      Specified by:
      loadSettings in interface SettingsProviderI
    • saveSettings

      public void saveSettings()
      Description copied from interface: SettingsProviderI
      Save the state from Model to disk.
      Specified by:
      saveSettings in interface SettingsProviderI