|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.config.jar.JarLinkNodeFactory
Copyright 2002 Sapient
Field Summary | |
private static NodeFactory |
configurationDocumentFactory
Holds a reference to a JarConfigurationDocumentFactory |
private static NodeFactory |
linkNodeFactory
Holds a reference to a JarLinkNodeConfigurationDocumentFactory |
private static NodeFactory |
subFolderFactory
Holds a reference to a JarFolderFactory |
Constructor Summary | |
JarLinkNodeFactory()
|
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 |
private String |
getTargetPath(JarLinkNodeConfiguration jarLinkConfiguration)
Gets and validates the target jar path from configuration |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final NodeFactory subFolderFactory
private static final NodeFactory configurationDocumentFactory
private static final NodeFactory linkNodeFactory
Constructor Detail |
public JarLinkNodeFactory()
Method Detail |
public LinkNode getInstance(Node parent, String name, ConfigurationDocument linkConfigurationDoc) throws NodeCreationException
LinkNodeFactory
LinkNode
.
getInstance
in interface LinkNodeFactory
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.
NodeCreationException
- if the LinkNode
cannot be
created.LinkNodeFactory.getInstance(org.sape.carbon.core.config.node.Node, java.lang.String, org.sape.carbon.core.config.node.ConfigurationDocument)
protected NodeFactory getSubFolderFactory()
protected NodeFactory getConfigurationDocumentFactory()
protected NodeFactory getLinkNodeFactory()
private String getTargetPath(JarLinkNodeConfiguration jarLinkConfiguration)
jarLinkConfiguration
- the link config to pull the target
jar path from
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |