public class FilePreferencesFactory
extends java.lang.Object
implements java.util.prefs.PreferencesFactory
PreferencesFactory
which creates FilePreferences
instances.Constructor and Description |
---|
FilePreferencesFactory() |
Modifier and Type | Method and 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() |
public static void initialize(@NotNull @NotNull java.lang.String defaultName, @Nullable @Nullable java.io.File file)
defaultName
- the default key name for loading/saving valuesfile
- the file for loading/saving values or null
to not use
a backing file@NotNull public @NotNull java.util.prefs.Preferences userRoot()
userRoot
in interface java.util.prefs.PreferencesFactory
@NotNull public @NotNull java.util.prefs.Preferences systemRoot()
systemRoot
in interface java.util.prefs.PreferencesFactory