org.sape.carbon.services.config.jndi
Class JNDIFolderFactory
java.lang.Object
|
+--org.sape.carbon.services.config.jndi.JNDIFolderFactory
- All Implemented Interfaces:
- NodeFactory
- public class JNDIFolderFactory
- extends Object
- implements NodeFactory
This class provides the functionality for creating JNDIFolderFactory nodes.
Copyright 2003 Sapient
- Since:
- carbon 2.0
- Version:
- $Revision: 1.7 $($Author: dvoet $ / $Date: 2003/05/05 21:21:10 $)
- Author:
- Douglas Voet, March 2003
Method Summary |
Node |
getInstance(Node parent,
String name)
Creates JNDIConfigurationDocument objects only as children
of JNDIFolders. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
config
private JNDILinkNodeConfiguration config
JNDIFolderFactory
public JNDIFolderFactory(JNDILinkNodeConfiguration config)
- Constructs a new factory
- Parameters:
config
- configuration used to get the names of the attributes
that hold node name, node and document type, and document content as well
as valid attribute values for node and document type.
getInstance
public Node getInstance(Node parent,
String name)
throws NodeCreationException
- Creates JNDIConfigurationDocument objects only as children
of JNDIFolders.
- Specified by:
getInstance
in interface NodeFactory
- Parameters:
parent
- the parent node of the folder to be created, must be of
type JNDIFoldername
- the name of the node to create
- Returns:
- Node the new Node
- Throws:
InvalidParameterExcpetion
- if parent is not
assignable from JNDIFolder or name is null
NodeCreationException
- if the LinkNode
cannot be
created.
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.