| java.lang.Object org.sape.carbon.core.config.node.AbstractNode org.sape.carbon.core.config.node.AbstractFolder
All known Subclasses: org.sape.carbon.core.config.node.file.FileFolder, org.sape.carbon.services.config.jar.JarFolder, org.sape.carbon.services.config.classloader.ClassloaderFolder, org.sape.carbon.services.config.jndi.JNDIFolder,
AbstractFolder | abstract public class AbstractFolder extends AbstractNode implements Folder(Code) | | This implementation of the Folder interface caches its
children as they are requested. This implementation interfaces with the
backing data store through sub-classes implementing the methods
loadChild and getAllChildNames .
Copyright 2002 Sapient
since: carbon 1.0 author: Douglas Voet, February 2002 version: $Revision: 1.32 $($Author: dvoet $ / $Date: 2003/10/16 20:57:29 $) |
Constructor Summary | |
public | AbstractFolder(Node parent, String name, Object readOrAlterNodeLock, Object addOrLoadChildLock, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory) Constructor for AbstractFolder. | public | AbstractFolder(Node parent, String name, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory) Constructor for AbstractFolder. |
AbstractFolder | public AbstractFolder(Node parent, String name, Object readOrAlterNodeLock, Object addOrLoadChildLock, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory)(Code) | | Constructor for AbstractFolder.
Parameters: parent - the node's parent Parameters: name - the node's name Parameters: subFolderFactory - factory to use for sub folders Parameters: configurationDocumentFactory - factory to use forcreating configuration documents Parameters: linkNodeFactory - factory to use for creating link nodes. throws: InvalidParameterException - if name, subFolderFactory, orconfigurationDocumentFactory is null |
AbstractFolder | public AbstractFolder(Node parent, String name, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory)(Code) | | Constructor for AbstractFolder.
Parameters: parent - the node's parent Parameters: name - the node's name Parameters: subFolderFactory - factory to use for sub folders Parameters: configurationDocumentFactory - factory to use forcreating configuration documents Parameters: linkNodeFactory - factory to use for creating link nodes. throws: InvalidParameterException - if name, subFolderFactory, orconfigurationDocumentFactory is null |
createNewConfigurationDocument | protected ConfigurationDocument createNewConfigurationDocument(String name, Configuration config) throws NodeCreationException(Code) | | Uses the configurationDocumentFactory to create a child
ConfigurationDocument and adds it to childNodes.
Parameters: name - name of the ConfigurationDocument Parameters: config - the new config to write ConfigurationDocument the new child throws: NodeCreationException - if the child could not be created forany reason |
createNewFolder | protected Folder createNewFolder(String name) throws NodeCreationException(Code) | | Uses the subFolderFactory to create a child Folder and
adds it to childNodes
Parameters: name - name of the Folder Folder the new child throws: NodeCreationException - if the child could not be created forany reason |
|
|