Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util.prefs

Interface PreferencesFactory

java.lang.Object
|
+--java.util.prefs.PreferencesFactory


public interface PreferencesFactory

Preferences system and user root factory interface. Defines how to get to the system and user root preferences objects. Should be implemented by new preferences backends.

Since:Author:

Method Summary

java.util.prefs.PreferencessystemRoot()

Returns the system root preferences node.
java.util.prefs.PreferencesuserRoot()

Returns the user root preferences node.

Method Details

systemRoot

public Preferences systemRoot()

Returns the system root preferences node. Should always return the same object.


userRoot

public Preferences userRoot()

Returns the user root preferences node. May return different objects depending on the user that called this method. The user may for example be determined by the current Thread or the Subject associated with the current AccessControllContext.