org.sape.carbon.services.config.jndi
Class JNDILinkNodeFactory

java.lang.Object
  |
  +--org.sape.carbon.services.config.jndi.JNDILinkNodeFactory
All Implemented Interfaces:
LinkNodeFactory

public class JNDILinkNodeFactory
extends Object
implements LinkNodeFactory

Factory used to create links to nodes on a JNDI directory. Copyright 2003 Sapient

Since:
carbon 2.0
Version:
$Revision: 1.10 $($Author: dvoet $ / $Date: 2003/10/30 19:29:58 $)
Author:
Douglas Voet, February 2003

Field Summary
private  org.apache.commons.logging.Log log
           
 
Constructor Summary
JNDILinkNodeFactory()
           
 
Method Summary
protected  NodeFactory getConfigurationDocumentFactory(JNDILinkNodeConfiguration config)
          Gets the factory used within this package to create configuration documents
 LinkNode getInstance(Node parent, String name, ConfigurationDocument linkConfigurationDoc)
          Constructs a LinkNode.
protected  NodeFactory getLinkNodeFactory(JNDILinkNodeConfiguration config)
          Gets the factory used within this package to create links
protected  NodeFactory getSubFolderFactory(JNDILinkNodeConfiguration config)
          Gets the factory used within this package to create folders
private  void validateConfig(JNDILinkNodeConfiguration config)
          Validates that config has all required properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private org.apache.commons.logging.Log log
Constructor Detail

JNDILinkNodeFactory

public JNDILinkNodeFactory()
Method Detail

getInstance

public LinkNode getInstance(Node parent,
                            String name,
                            ConfigurationDocument linkConfigurationDoc)
                     throws NodeCreationException
Description copied from interface: LinkNodeFactory
Constructs a LinkNode.

Specified by:
getInstance in interface LinkNodeFactory
Parameters:
parent - the parent Folder of the LinkNode. Can be null only if the LinkNode is the root Node for the ConfigurationService
name - the name of the LinkNode. Cannot be null.
linkConfigurationDoc - the ConfigurationDocument containing the LinkNodeConfiguration for the new link. Cannot be null.
Returns:
LinkNode the new link
Throws:
NodeCreationException - if the LinkNode cannot be created.

getSubFolderFactory

protected NodeFactory getSubFolderFactory(JNDILinkNodeConfiguration config)
Gets the factory used within this package to create folders

Returns:
NodeFactory

getConfigurationDocumentFactory

protected NodeFactory getConfigurationDocumentFactory(JNDILinkNodeConfiguration config)
Gets the factory used within this package to create configuration documents

Returns:
NodeFactory

getLinkNodeFactory

protected NodeFactory getLinkNodeFactory(JNDILinkNodeConfiguration config)
Gets the factory used within this package to create links

Returns:
NodeFactory

validateConfig

private void validateConfig(JNDILinkNodeConfiguration config)
Validates that config has all required properties.

Parameters:
config -


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.