|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.configuration.cci.ContextSensitivePreferences
public class ContextSensitivePreferences
Context Sensitive Preferences
Provides preferences for the following trees
| Field Summary | |
|---|---|
protected static String |
PREFERENCES_FACTORY
The default ContextSensitivePreferencesFactory is
org.openmdx.base.configuration.BasicPreferencesFactory. |
static String |
PREFERENCES_FACTORY_PROPERTY
The system property org.openmdx.prefs.PreferencesFactory
can be used to override the default context sensitive preferences
factory name. |
| Constructor Summary | |
|---|---|
protected |
ContextSensitivePreferences()
Constructor |
| Method Summary | |
|---|---|
static Preferences |
applicationNodeForPackage(Class aClass)
Find a package based application preference node given a class of the package. |
static Preferences |
applicationRoot()
Returns the topmost preference node for the application. |
static Preferences |
componentNodeForPackage(Class aClass)
Find a package based component preference node given a class of the package. |
static Preferences |
componentRoot()
Returns the topmost preference node for the component. |
static Preferences |
containerNodeForPackage(Class aClass)
Find a package based container preference node given a class of the package. |
static Preferences |
containerRoot()
Returns the topmost preference node for the system. |
static Preferences |
moduleNodeForPackage(Class aClass)
Find a package based module preference node given a class of the package. |
static Preferences |
moduleRoot()
Returns the topmost preference node for the application. |
protected static Preferences |
nodeForPackage(Preferences rootNode,
Class aClass)
Find a package based preference node given its root node and a class of the package. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PREFERENCES_FACTORY_PROPERTY
org.openmdx.prefs.PreferencesFactory
can be used to override the default context sensitive preferences
factory name.
PREFERENCES_FACTORY,
Constant Field Valuesprotected static final String PREFERENCES_FACTORY
ContextSensitivePreferencesFactory is
org.openmdx.base.configuration.BasicPreferencesFactory.
PREFERENCES_FACTORY_PROPERTY| Constructor Detail |
|---|
protected ContextSensitivePreferences()
| Method Detail |
|---|
public static Preferences containerRoot()
public static Preferences applicationRoot()
public static Preferences moduleRoot()
public static Preferences componentRoot()
public static Preferences containerNodeForPackage(Class aClass)
aClass - the class for whose package a container preference node is desired.
aClass is a member.
NullPointerException - if aClass is null.
IllegalArgumentException - if aClass is an array classpublic static Preferences applicationNodeForPackage(Class aClass)
aClass - the class for whose package an application preference node is desired.
aClass is a member.
NullPointerException - if aClass is null.
IllegalArgumentException - if aClass is an array classpublic static Preferences moduleNodeForPackage(Class aClass)
aClass - the class for whose package a module preference node is desired.
aClass is a member.
NullPointerException - if aClass is null.
IllegalArgumentException - if aClass is an array classpublic static Preferences componentNodeForPackage(Class aClass)
aClass - the class for whose package a component preference node is desired.
aClass is a member.
NullPointerException - if aClass is null.
IllegalArgumentException - if aClass is an array classprotected static Preferences nodeForPackage(Preferences rootNode, Class aClass)
aClass - the class for whose package a preference node is desired.rootNode - the topmost node
c is a member.
NullPointerException - if root or aClass is
null.
IllegalArgumentException - if aClass is an array class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||