|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigurationManagement
Configuration Management service interface. This interface defines how the rest of the system interacts with the configuration subsystem.
| Method Summary | |
|---|---|
void |
addConfigurationSet(ConfigurationSet set,
java.lang.String setName,
java.lang.String configurationDefinition)
Add a ConfigurationSet to the persistant storage. |
void |
addConfigurationSetDefinition(org.osgi.service.metatype.ObjectClassDefinition configurationDefinition)
Add the definition of a new ConfigurationSet. |
void |
addConfigurationSetDefinition(java.net.URL configurationDefinition)
Add the definitino of a new ConfigurationSet based on
the supplied MetaType xml document. |
void |
addListener(ConfigurationManagementListener listener,
java.lang.String relativePath)
Add a listener to (a subset of) the configuration data. |
ConfigurationEntry |
getConfigurationEntry(java.lang.String entryPath)
Return a configuration entry given a dot expression. |
ConfigurationSet |
getConfigurationSet(java.lang.String relativePath)
Returns the ConfigurationSet, if available, on the relative path. |
java.lang.String[] |
getConfigurationSetDefinitions()
Returns an array of the names of all registered ConfigurationSet definitions. |
ConfigurationSet[] |
getConfigurationSets(java.lang.String relativePath)
Returns all configuration sets under the relative path. |
ConfigurationSet[] |
getConfigurationSets(java.lang.String definition,
java.util.Map<java.lang.String,java.lang.String> context)
Returns the ConfigurationSets, if available, of the requested definition,
whose criteria match the context. |
ConfigurationSet |
getConfigurationSetTemplate(java.lang.String configurationDefinition)
Return an empty ConfigurationSet based on the given definition. |
java.lang.String |
getParameter(java.lang.String parameter)
TODO |
java.lang.String |
getParameter(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context)
TODO |
java.lang.String |
getParameter(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context,
java.lang.String confSetName)
TODO |
java.lang.String[] |
getParameters(java.lang.String parameter)
TODO |
java.lang.String[] |
getParameters(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context)
|
java.lang.String[] |
getParameters(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context,
java.lang.String confSetName)
TODO |
void |
parseAndAddConfigurationSets(java.io.File path,
boolean overwrite)
This method reads and parses an XML document given a File containing default configuration sets for a particular configuration set definition. |
void |
parseAndAddConfigurationSets(java.net.URL path,
boolean overwrite)
This method reads and parses an XML document given a URL to a file containing default configuration sets for a particular configuration set definition. |
void |
removeConfigurationSet(java.lang.String relativePath)
Remove a ConfigurationSet from the persistant storage. |
void |
removeListener(ConfigurationManagementListener listener)
Removes the ConfigurationManagementListener from the
administration of listeners. |
void |
setConfigurationEntry(java.lang.String entryPath,
java.lang.String[] value)
Update the configurationentry with the given path with the given value. |
void |
updateConfigurationSet(ConfigurationSet set,
java.lang.String relativePath)
Updates the contents of the ConfigurationSet stored in
the persistant storage. |
| Method Detail |
|---|
void addConfigurationSetDefinition(org.osgi.service.metatype.ObjectClassDefinition configurationDefinition)
ConfigurationSet.
This definition is based on the OSGi MetaType specification.
configurationDefinition - MetaType ObjectClass definition.void addConfigurationSetDefinition(java.net.URL configurationDefinition)
ConfigurationSet based on
the supplied MetaType xml document.
configurationDefinition - Path the MetaType XML document.
void parseAndAddConfigurationSets(java.io.File path,
boolean overwrite)
path - Path of the file with default configuration sets to loadoverwrite - Indicates if configuration entries that have already a value should be overwritten or not.
Configuration entries do not have a value yet for example if the corresponding property definition is just created.
java.io.IOException
org.jdom.JDOMException
void parseAndAddConfigurationSets(java.net.URL path,
boolean overwrite)
path - Path of the file with default configuration sets to loadoverwrite - Indicates if configuration entries that have already a value should be overwritten or not.
Configuration entries do not have a value yet for example if the corresponding property definition is just created.
java.io.IOException
org.jdom.JDOMExceptionjava.lang.String[] getConfigurationSetDefinitions()
ConfigurationSet definitions.
ConfigurationSet definition names.ConfigurationSet getConfigurationSetTemplate(java.lang.String configurationDefinition)
ConfigurationSet based on the given definition.
configurationDefinition - Relative path identifying the definition of
the required ConfigurationSet
void addConfigurationSet(ConfigurationSet set,
java.lang.String setName,
java.lang.String configurationDefinition)
ConfigurationSet to the persistant storage.
The set is stored at the location of its ConfigurationSet definition
under the given set name.
set - The ConfigurationSet containing the configuration data.setName - The name under which the set should be stored.configurationDefinition - The definition dictating the structure of the ConfigurationSet.void removeConfigurationSet(java.lang.String relativePath)
ConfigurationSet from the persistant storage.
The set at the given (relative to the configuration path) path is deleted.
relativePath - The path to the set, relative to the configuration path.
void updateConfigurationSet(ConfigurationSet set,
java.lang.String relativePath)
ConfigurationSet stored in
the persistant storage.
relativePath - The path to the set, relative to the configuration path.ConfigurationSet getConfigurationSet(java.lang.String relativePath)
ConfigurationSet, if available, on the relative path.
relativePath - The path to the set, relative to the configuration path.
ConfigurationSet[] getConfigurationSets(java.lang.String definition,
java.util.Map<java.lang.String,java.lang.String> context)
ConfigurationSets, if available, of the requested definition,
whose criteria match the context.
definition - the definition type of the setcontext - the context to be applied when matching for criteria
ConfigurationSet[] getConfigurationSets(java.lang.String relativePath)
relativePath - The path to the set, relative to the configuration path.ConfigurationEntry getConfigurationEntry(java.lang.String entryPath)
propertyPath - Expression to retrieve entry for
void setConfigurationEntry(java.lang.String entryPath,
java.lang.String[] value)
entryPath - Expression to retrieve entry forvalue - String array of values to set
void addListener(ConfigurationManagementListener listener,
java.lang.String relativePath)
throws ConfigurationManagementException
listener - ConfigurationManagementListener to add to the set of listeners.relativePath - The subtree of configuration data, relative to the configuration path.
ConfigurationManagementExceptionvoid removeListener(ConfigurationManagementListener listener)
ConfigurationManagementListener from the
administration of listeners.
listener - ConfigurationManagementListener to remove.
java.lang.String getParameter(java.lang.String parameter)
throws ConfigurationManagementException
parameter -
ConfigurationManagementException
java.lang.String getParameter(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context)
throws ConfigurationManagementException
parameter - context -
ConfigurationManagementException
java.lang.String getParameter(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context,
java.lang.String confSetName)
throws ConfigurationManagementException
parameter - context -
ConfigurationManagementException
java.lang.String[] getParameters(java.lang.String parameter)
throws ConfigurationManagementException
parameter -
ConfigurationManagementException
java.lang.String[] getParameters(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context)
throws ConfigurationManagementException
parameter - context -
ConfigurationManagementException
java.lang.String[] getParameters(java.lang.String parameter,
java.util.Map<java.lang.String,java.lang.String> context,
java.lang.String confSetName)
throws ConfigurationManagementException
parameter - context -
ConfigurationManagementException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||