|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.sape.carbon.core.config.node.link.AbstractLinkNode
|
+--org.sape.carbon.core.config.node.link.ConfigurationDocumentLinkImpl
Implementation of ConfigurationDocumentLink. This is
probably the only implementation that will ever be needed. It does not
contain any logic specific to a data store so a new implementation should
not be required when new data stores are introduced. The only thing that
should be variable is which factory is used to create a link.
Copyright 2002 Sapient
| Field Summary |
| Fields inherited from class org.sape.carbon.core.config.node.link.AbstractLinkNode |
linkConfigurationDocument, targetNode |
| Fields inherited from interface org.sape.carbon.core.config.node.Node |
DELIMITER |
| Constructor Summary | |
ConfigurationDocumentLinkImpl(ConfigurationDocument linkConfigurationDocument,
ConfigurationDocument targetConfigurationDocument)
Constructor for ConfigurationDocumentLinkImpl. |
|
| 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. |
void |
addNodeListener(ConfigurationEventListener listener)
Method addNodeListener. |
void |
addNodeListener(NodeEventListener listener)
Method addNodeListener. |
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 class org.sape.carbon.core.config.node.link.AbstractLinkNode |
containsChild, fetchChild, fetchChildren, getAbsoluteName, getAllowsChildren, getName, getParent, isRemoved, readLinkConfiguration, refresh, remove, toString, writeLinkConfiguration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.sape.carbon.core.config.node.link.LinkNode |
readLinkConfiguration, writeLinkConfiguration |
| Methods inherited from interface org.sape.carbon.core.config.node.Node |
containsChild, fetchChild, fetchChildren, getAbsoluteName, getAllowsChildren, getName, getParent, isRemoved, refresh, remove |
| Constructor Detail |
public ConfigurationDocumentLinkImpl(ConfigurationDocument linkConfigurationDocument,
ConfigurationDocument targetConfigurationDocument)
linkConfigurationDocument - used to implement the
LinkNode interfacetargetConfigurationDocument - used to implement the
ConfigurationDocument interface| Method Detail |
public Configuration readConfiguration()
throws NodeIOException,
ConfigurationFormatException
ConfigurationDocumentNode.
readConfiguration in interface ConfigurationDocumentNodeIOException - indicates an error reading a node
ConfigurationFormatException - when the configuration
data can not be read.ConfigurationDocument.readConfiguration()
public void writeConfiguration(Configuration config)
throws NodeIOException,
ConfigurationFormatException
ConfigurationDocumentconfig to the location represented by this
Node.
writeConfiguration in interface ConfigurationDocumentconfig - The Configuration Container in the current node.
NodeIOException - indicates an error reading a node
ConfigurationFormatException - when the configuration
data can not be persisted.ConfigurationDocument.writeConfiguration(Configuration)
public ConfigurationDocument addNestedConfigurationDocument(String name,
Configuration config)
throws NodeCreationException
ConfigurationDocument
addNestedConfigurationDocument in interface ConfigurationDocumentname - 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.ConfigurationDocument.addNestedConfigurationDocument(java.lang.String, org.sape.carbon.core.config.Configuration)public ConfigurationFormatService getFormatService()
ConfigurationDocument
getFormatService in interface ConfigurationDocumentConfigurationDocument.getFormatService()public void addNodeListener(NodeEventListener listener)
Node
addNodeListener in interface Nodelistener - lister for the nodeNode.addNodeListener(NodeEventListener)public void addNodeListener(ConfigurationEventListener listener)
Node
addNodeListener in interface Nodelistener - lister for the nodeNode.addNodeListener(ConfigurationEventListener)public NodeFactory getNestedNodeFactory()
ConfigurationDocument
getNestedNodeFactory in interface ConfigurationDocumentConfigurationDocument.getNestedNodeFactory()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||