Interface PersistenceManager
-
- All Superinterfaces:
ApplicationComponent
- All Known Implementing Classes:
OnDiskPersistenceManager
public interface PersistenceManager extends ApplicationComponent
Manages the persistence settings. Encapsulates output and input streams to mock easily.- Author:
- Clément Fournier
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
persistSettings(SettingsOwner settingsOwner)
Save the settings from the tree rooted at the [settingsOwner] somewhere for the next runs.void
restoreSettings(SettingsOwner settingsOwner)
Restore the persisted settings into the root settings owner.-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.ApplicationComponent
getDebugName, getDesignerRoot, getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, languageBindingsProperty, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
Method Detail
-
restoreSettings
void restoreSettings(SettingsOwner settingsOwner)
Restore the persisted settings into the root settings owner.- Parameters:
settingsOwner
- Root of the settings owner hierarchy
-
persistSettings
void persistSettings(SettingsOwner settingsOwner)
Save the settings from the tree rooted at the [settingsOwner] somewhere for the next runs.- Parameters:
settingsOwner
- Root of the settings owner hierarchy
-
-