org.netbeans.modules.openide.util
Interface PreferencesProvider


public interface PreferencesProvider

Author:
Radek Matous

Method Summary
 java.util.prefs.Preferences preferencesForModule(java.lang.Class cls)
          Returns user preference node.
 java.util.prefs.Preferences preferencesRoot()
          Returns the root preference node.
 

Method Detail

preferencesForModule

java.util.prefs.Preferences preferencesForModule(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

preferencesRoot

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

Returns:
the root preference node.