org.sape.carbon.services.config.classloader
Class ClassloaderLinkNodeFactory

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

public class ClassloaderLinkNodeFactory
extends Object
implements LinkNodeFactory

Factory that creates links to ClassLoader based configuration node hierarchies. Copyright 2003 Sapient

Since:
carbon 2.0
Version:
$Revision: 1.5 $($Author: dvoet $ / $Date: 2003/11/11 21:19:58 $)
Author:
Greg Hinkle, April 2003

Field Summary
private static NodeFactory configurationDocumentFactory
           
private static NodeFactory linkNodeFactory
           
private static NodeFactory subFolderFactory
           
 
Constructor Summary
ClassloaderLinkNodeFactory()
           
 
Method Summary
protected  NodeFactory getConfigurationDocumentFactory()
          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()
          Gets the factory used within this package to create links
protected  NodeFactory getSubFolderFactory()
          Gets the factory used within this package to create folders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

subFolderFactory

private static final NodeFactory subFolderFactory

configurationDocumentFactory

private static final NodeFactory configurationDocumentFactory

linkNodeFactory

private static final NodeFactory linkNodeFactory
Constructor Detail

ClassloaderLinkNodeFactory

public ClassloaderLinkNodeFactory()
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()
Gets the factory used within this package to create folders

Returns:
NodeFactory

getConfigurationDocumentFactory

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

Returns:
NodeFactory

getLinkNodeFactory

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

Returns:
NodeFactory


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.