Class FilePreferencesFactory

  • All Implemented Interfaces:
    java.util.prefs.PreferencesFactory

    public class FilePreferencesFactory
    extends java.lang.Object
    implements java.util.prefs.PreferencesFactory
    A PreferencesFactory which creates FilePreferences instances.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void initialize​(@NotNull java.lang.String defaultName, @Nullable java.io.File file)
      Initialize the module.
      @NotNull java.util.prefs.Preferences systemRoot()  
      @NotNull java.util.prefs.Preferences userRoot()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FilePreferencesFactory

        public FilePreferencesFactory()
    • Method Detail

      • initialize

        public static void initialize​(@NotNull
                                      @NotNull java.lang.String defaultName,
                                      @Nullable
                                      @Nullable java.io.File file)
        Initialize the module. This function must be called before an instance is used.
        Parameters:
        defaultName - the default key name for loading/saving values
        file - the file for loading/saving values or null to not use a backing file
      • userRoot

        @NotNull
        public @NotNull java.util.prefs.Preferences userRoot()
        Specified by:
        userRoot in interface java.util.prefs.PreferencesFactory
      • systemRoot

        @NotNull
        public @NotNull java.util.prefs.Preferences systemRoot()
        Specified by:
        systemRoot in interface java.util.prefs.PreferencesFactory