|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.base.configuration.spi.BasicPreferencesFactory
public class BasicPreferencesFactory
Basic Preferences Factory
The BasicPreferencesFactory's implementation
supports the following providers:
java.util.prefs.Preferences' System or
User preferences
java.util.Properties based configuration
| Field Summary | |
|---|---|
protected static String |
APPLICATION_SEGMENT
The application preferences segment has the following default value: xri://@openmdx*org.openmdx.preferences1/provider/Java*Properties/segment/(xri://+resource/org/openmdx/prefs/application/preferences.properties) |
static String |
APPLICATION_SEGMENT_PROPERTY
The system property org.openmdx.prefs.ApplicationSegment
can be used to override the default application sgement path. |
protected static String |
COMPONENT_SEGMENT
The component preferences segment has the following default value: xri://@openmdx*org.openmdx.preferences1/provider/Java*Naming/segment/(java:comp/env) |
static String |
COMPONENT_SEGMENT_PROPERTY
The system property org.openmdx.prefs.ComponentSegment
can be used to override the default application sgement path. |
protected static String |
CONTAINER_SEGMENT
The container preferences segment has the following default value: "xri://@openmdx*org.openmdx.preferences1/provider/Java*Properties/segment/System*(xri://+resource/org/openmdx/prefs/container/preferences.properties)" |
static String |
CONTAINER_SEGMENT_PROPERTY
The system property org.openmdx.prefs.ContainerSegment
can be used to override the default container sgement path. |
protected static String |
MODULE_SEGMENT
The module preferences segment has the following default value: xri://@openmdx*org.openmdx.preferences1/provider/Java*Properties/segment/(xri://+resource/org/openmdx/prefs/module/preferences.properties) |
static String |
MODULE_SEGMENT_PROPERTY
The system property org.openmdx.prefs.ModuleSegment
can be used to override the default module sgement path. |
protected static Path |
PREFERENCES_1_SEGMENT_PATTERN
org::openmdx::preferences1 segment pattern as XRI 1: xri:@openmdx:org.openmdx.preferences1/provider/**/segment/** as XRI 2: xri://@openmdx*org.openmdx.preferences1/provider/$(..)/segment/($..) as Path: org::openmdx::preferences1/provider/::*/segment/::* as URI: spice://org:openmdx:preferences1/provider/:*/segment/:* |
| Constructor Summary | |
|---|---|
BasicPreferencesFactory()
|
|
| Method Summary | |
|---|---|
Preferences |
applicationRoot()
Returns the topmost preference node for the application. |
Preferences |
componentRoot()
Returns the topmost preference node for the component. |
Preferences |
containerRoot()
Returns the topmost preference node for the container. |
protected static Preferences |
getSegment(String xri,
boolean userNode)
The BasicPreferencesFactory's implementation supports the
following providers:
Java*Preferences —
java.util.prefs.Preferences' System or
User preferences
Java*Properties —
java.util.Properties based configuration
Java*Naming — JNDI based configuration, e.g. |
Preferences |
moduleRoot()
Returns the topmost preference node for the module. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Path PREFERENCES_1_SEGMENT_PATTERN
public static final String CONTAINER_SEGMENT_PROPERTY
org.openmdx.prefs.ContainerSegment
can be used to override the default container sgement path.
CONTAINER_SEGMENT,
Constant Field Valuesprotected static final String CONTAINER_SEGMENT
CONTAINER_SEGMENT_PROPERTYpublic static final String APPLICATION_SEGMENT_PROPERTY
org.openmdx.prefs.ApplicationSegment
can be used to override the default application sgement path.
APPLICATION_SEGMENT,
Constant Field Valuesprotected static final String APPLICATION_SEGMENT
APPLICATION_SEGMENT_PROPERTYpublic static final String MODULE_SEGMENT_PROPERTY
org.openmdx.prefs.ModuleSegment
can be used to override the default module sgement path.
MODULE_SEGMENT,
Constant Field Valuesprotected static final String MODULE_SEGMENT
MODULE_SEGMENT_PROPERTYpublic static final String COMPONENT_SEGMENT_PROPERTY
org.openmdx.prefs.ComponentSegment
can be used to override the default application sgement path.
COMPONENT_SEGMENT,
Constant Field Valuesprotected static final String COMPONENT_SEGMENT
COMPONENT_SEGMENT_PROPERTY| Constructor Detail |
|---|
public BasicPreferencesFactory()
| Method Detail |
|---|
protected static Preferences getSegment(String xri,
boolean userNode)
BasicPreferencesFactory's implementation supports the
following providers:java.util.prefs.Preferences' System or
User preferences
java.util.Properties based configuration
xri - the preferences' sourceuserNode -
IllegalArgumentException - if the given path's provider is not supportedpublic Preferences containerRoot()
ContextSensitivePreferencesFactory
containerRoot in interface ContextSensitivePreferencesFactorypublic Preferences applicationRoot()
ContextSensitivePreferencesFactory
applicationRoot in interface ContextSensitivePreferencesFactorypublic Preferences moduleRoot()
ContextSensitivePreferencesFactory
moduleRoot in interface ContextSensitivePreferencesFactorypublic Preferences componentRoot()
ContextSensitivePreferencesFactory
componentRoot in interface ContextSensitivePreferencesFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||