|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ConfigurationDocument
is a Node
that contains
configuration information. This interface contains methods to read
and write Configuration
objects from and to a data store.
Copyright 2002 Sapient
Configuration
Field Summary |
Fields inherited from interface org.sape.carbon.core.config.node.Node |
DELIMITER |
Method Summary | |
ConfigurationDocument |
addNestedConfigurationDocument(String name,
Configuration config)
Adds a nested configuration object within this document with the name given by name and the value given by config. |
ConfigurationFormatService |
getFormatService()
Method getFormatService. |
NodeFactory |
getNestedNodeFactory()
Returns the nested node factory for the configuration. |
Configuration |
readConfiguration()
Accesses the underlying data store to load the configuration data from to the location represented by this Node . |
void |
writeConfiguration(Configuration config)
Accesses the underlying data store to persist the configuration data of config to the location represented by this
Node . |
Methods inherited from interface org.sape.carbon.core.config.node.Node |
addNodeListener, addNodeListener, containsChild, fetchChild, fetchChildren, getAbsoluteName, getAllowsChildren, getName, getParent, isRemoved, refresh, remove |
Method Detail |
public void writeConfiguration(Configuration config) throws NodeIOException, ConfigurationFormatException
config
to the location represented by this
Node
.
config
- The Configuration Container in the current node.
ConfigurationFormatException
- when the configuration
data can not be persisted.
NodeIOException
- indicates an error reading a nodeConfigurationService.storeConfiguration(String, Configuration)
public Configuration readConfiguration() throws NodeIOException, ConfigurationFormatException
Node
.
ConfigurationFormatException
- when the configuration
data can not be read.
NodeIOException
- indicates an error reading a nodeConfigurationService.fetchConfiguration(String)
public ConfigurationDocument addNestedConfigurationDocument(String name, Configuration config) throws NodeCreationException
name
- the name of the configuration to add. This should not use
indexed notation. If the property is indexed, config will
be added to the end of the list. Retrieval then needs to
use the indexed notation.config
- the config object to add. If this object belongs to
another configuration document, a reference is created
to that document. Otherwise, the config is embedded
within this document.
NodeCreationException
- if there is a problem creating the
nested document.public ConfigurationFormatService getFormatService()
public NodeFactory getNestedNodeFactory()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |