org.openide.util
Class NbPreferences

java.lang.Object
  extended by org.openide.util.NbPreferences

public final class NbPreferences
extends java.lang.Object

Provides an implementation of the Preferences API which may be backed by a NetBeans-specific implementation.

Since:
org.openide.util 7.4
Author:
Radek Matous
See Also:
Preferences API in NetBeans

Method Summary
static java.util.prefs.Preferences forModule(java.lang.Class cls)
          Returns user preference node .
static java.util.prefs.Preferences root()
          Returns the root preference node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forModule

public static java.util.prefs.Preferences forModule(java.lang.Class cls)
Returns user preference node . Preferences.absolutePath() of such a node depends whether class provided as a parameter was loaded as a part of any module or not. If so, then absolute path corresponds to slashified code name base of module. If not, then absolute path corresponds to class's package.

Parameters:
cls - the class for which a user preference node is desired.
Returns:
the user preference node

root

public static java.util.prefs.Preferences root()
Returns the root preference node.

Returns:
the root preference node.