public class PropertiesPreferencesFactory
extends java.lang.Object
implements java.util.prefs.PreferencesFactory
Properties based implementation of the PreferencesFactory interface.| Constructor and Description |
|---|
PropertiesPreferencesFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.prefs.Preferences |
customRoot(java.nio.file.Path propertiesPath)
Create a
Preferences object backed up by a custom properties file. |
java.util.prefs.Preferences |
systemRoot() |
java.util.prefs.Preferences |
userRoot() |
public java.util.prefs.Preferences systemRoot()
systemRoot in interface java.util.prefs.PreferencesFactorypublic java.util.prefs.Preferences userRoot()
userRoot in interface java.util.prefs.PreferencesFactorypublic static java.util.prefs.Preferences customRoot(java.nio.file.Path propertiesPath)
Preferences object backed up by a custom properties file.propertiesPath - The path to properties file to use as a preference store.Preferences object.