Class SettingsPersistenceUtil


  • public final class SettingsPersistenceUtil
    extends java.lang.Object
    Utility methods to persist settings of the application.
    Since:
    6.1.0
    Author:
    Clément Fournier
    See Also:
    SimpleBeanModelNode, SettingsOwner
    • Method Detail

      • restoreProperties

        public static void restoreProperties​(SettingsOwner root,
                                             java.io.File file)
        Restores properties contained in the file into the given object.
        Parameters:
        root - Root of the hierarchy
        file - Properties file
      • persistProperties

        public static void persistProperties​(SettingsOwner root,
                                             java.io.File file)
                                      throws java.io.IOException
        Save properties of this object and descendants into the given file.
        Parameters:
        root - Root of the hierarchy
        file - Properties file
        Throws:
        java.io.IOException