| org.sape.carbon.core.config.node.AbstractFolder org.sape.carbon.services.config.jndi.JNDIFolder
JNDIFolder | public class JNDIFolder extends AbstractFolder implements NamespaceChangeListener,ObjectChangeListener(Code) | | A node that represents a JNDI context that contains other folders or documents.
This implementation implements NamespaceChangeListener and
ObjectChangeListener from the javax.naming.event package in order to listen
for changes in the backing datastore.
Copyright 2003 Sapient
since: carbon 2.0 author: Douglas Voet, March 2003 version: $Revision: 1.12 $($Author: dvoet $ / $Date: 2003/07/29 18:52:33 $) |
JNDIFolder | protected JNDIFolder(Node parent, String name, NodeFactory subFolderFactory, NodeFactory configurationDocumentFactory, NodeFactory linkNodeFactory, DirContext initialContext, Name nodeContextName, JNDILinkNodeConfiguration config)(Code) | | Constructs the JNDIFolder and registers itself as a
JNDI naming listener
Parameters: parent - the parent node of this node Parameters: name - the name of this node Parameters: subFolderFactory - factory used to create sub folders Parameters: configurationDocumentFactory - factory used to create sub documents Parameters: linkNodeFactory - factory used to create sub links Parameters: initialContext - the jndi initial context Parameters: nodeContextName - the name of this node's context Parameters: config - configuration used to get the names of the attributesthat hold node name, node and document type, and document content as wellas valid attribute values for node and document type. |
backingDataExists | protected boolean backingDataExists()(Code) | | Checks the backing directory to see if this nodes context exists and
if it does, has the right attributes.
|
getAllChildNames | protected Set getAllChildNames()(Code) | | |
getInitialContext | DirContext getInitialContext()(Code) | | Gets this nodes initial context. Used by JNDI node factories
to pass onto child nodes
DirContext |
getNodeContextName | Name getNodeContextName()(Code) | | Gets this nodes context name. Used by JNDI node factories
to construct child node context names
Name |
namingExceptionThrown | public void namingExceptionThrown(NamingExceptionEvent evt)(Code) | | Logs the fact that a NamingExceptionEvent occured
|
objectAdded | public void objectAdded(NamingEvent evt)(Code) | | This implementation does not do anything if an object is added
because the child could not have been loaded yet could not be cached
|
objectChanged | public void objectChanged(NamingEvent evt)(Code) | | Causes a refresh of this node
|
objectRemoved | public void objectRemoved(NamingEvent evt)(Code) | | Causes a refresh of this node
|
objectRenamed | public void objectRenamed(NamingEvent evt)(Code) | | Causes a refresh of this node
|
registerNamingListener | protected void registerNamingListener()(Code) | | Registers this node as a NamingListener with the backing context
|
|
|