Package ucar.util.prefs
Class PreferencesExtFactory
- java.lang.Object
-
- ucar.util.prefs.PreferencesExtFactory
-
- All Implemented Interfaces:
PreferencesFactory
public class PreferencesExtFactory extends Object implements PreferencesFactory
Implementation of PreferencesFactory to return PreferencesExt objects. Using this method of obtaining a Preferences object is optional; you can also just pass around the Preferences object explicitly. The default Preferences.userRoot() and Preferences.systemRoot() are empty. To use persistent versions, you must set them explicitly throughPreferencesExt.setSystemRoot( PreferencesExt prefs); PreferencesExt.setUserRoot( PreferencesExt prefs);
and also call:System.setProperty("java.util.prefs.PreferencesFactory", "ucar.util.prefs.PreferencesExtFactory");
-
-
Constructor Summary
Constructors Constructor Description PreferencesExtFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Preferences
systemRoot()
Preferences
userRoot()
-
-
-
Method Detail
-
userRoot
public Preferences userRoot()
- Specified by:
userRoot
in interfacePreferencesFactory
-
systemRoot
public Preferences systemRoot()
- Specified by:
systemRoot
in interfacePreferencesFactory
-
-