org.sape.carbon.core.config.node.link
Class GenericLinkNodeFactory
java.lang.Object
|
+--org.sape.carbon.core.config.node.link.GenericLinkNodeFactory
- All Implemented Interfaces:
- LinkNodeFactory
- public class GenericLinkNodeFactory
- extends Object
- implements LinkNodeFactory
Factory for creating links that point to other
Nodes within the existing configuration Node
hierarchy. These links are not specific to a backing
data store.
Copyright 2002 Sapient
- Since:
- carbon 1.0
- Version:
- $Revision: 1.5 $($Author: dvoet $ / $Date: 2003/05/05 21:21:19 $)
- Author:
- Douglas Voet, April 2002
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericLinkNodeFactory
public GenericLinkNodeFactory()
getInstance
public LinkNode getInstance(Node parent,
String name,
ConfigurationDocument linkConfigurationDoc)
throws NodeCreationException
- This implementation will return either a
FolderLink
or a ConfigurationDocumentLink depending on the type of the
target Node.
- Specified by:
getInstance in interface LinkNodeFactory
- Parameters:
parent - the parent of the link nodename - the name of the link nodelinkConfigurationDoc - must be an instanct of
GenericLinkNodeConfiguration
- Returns:
- the instance of the link node
- Throws:
NodeCreationException - indicates an error creating the link node- See Also:
LinkNodeFactory.getInstance(org.sape.carbon.core.config.node.Node, java.lang.String, org.sape.carbon.core.config.node.ConfigurationDocument)
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.