Class OnDiskPersistenceManager
- java.lang.Object
-
- net.sourceforge.pmd.util.fxdesigner.app.services.OnDiskPersistenceManager
-
- All Implemented Interfaces:
ApplicationComponent
,PersistenceManager
public class OnDiskPersistenceManager extends java.lang.Object implements PersistenceManager
Default persistence manager.- Author:
- Clément Fournier
-
-
Constructor Summary
Constructors Constructor Description OnDiskPersistenceManager(DesignerRoot root, java.nio.file.Path input, java.nio.file.Path output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DesignerRoot
getDesignerRoot()
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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.util.fxdesigner.app.ApplicationComponent
getDebugName, getGlobalLanguageVersion, getLogCategory, getLogger, getMainStage, getService, globalLanguageProperty, isDeveloperMode, languageBindingsProperty, logInternalDebugInfo, logInternalDebugInfo, logInternalException, logUserException, raiseParsableSourceFlag, raiseParsableXPathFlag
-
-
-
-
Constructor Detail
-
OnDiskPersistenceManager
public OnDiskPersistenceManager(DesignerRoot root, java.nio.file.Path input, java.nio.file.Path output)
-
-
Method Detail
-
getDesignerRoot
public DesignerRoot getDesignerRoot()
- Specified by:
getDesignerRoot
in interfaceApplicationComponent
-
restoreSettings
public void restoreSettings(SettingsOwner settingsOwner)
Description copied from interface:PersistenceManager
Restore the persisted settings into the root settings owner.- Specified by:
restoreSettings
in interfacePersistenceManager
- Parameters:
settingsOwner
- Root of the settings owner hierarchy
-
persistSettings
public void persistSettings(SettingsOwner settingsOwner)
Description copied from interface:PersistenceManager
Save the settings from the tree rooted at the [settingsOwner] somewhere for the next runs.- Specified by:
persistSettings
in interfacePersistenceManager
- Parameters:
settingsOwner
- Root of the settings owner hierarchy
-
-