|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.services.config.jndi.AbstractJNDIConfigurationDocumentFactory
This class provides most of the functionality for creating
JNDIConfigurationDocument nodes. Extentions implement the
getTypeAttributeValue method that provides the type of the document (link
or document).
Copyright 2003 Sapient
Field Summary | |
protected JNDILinkNodeConfiguration |
config
|
private static ConfigurationFormatService |
FORMAT_SERVICE
|
Constructor Summary | |
AbstractJNDIConfigurationDocumentFactory(JNDILinkNodeConfiguration config)
Constructs a new factory |
Method Summary | |
protected ConfigurationFormatService |
getConfigurationFormatService()
Method that determines which ConfigurationFormatService will be used within the ConfigurationDocuments of this package. |
Node |
getInstance(Node parent,
String name)
Creates JNDIConfigurationDocument objects only as children of JNDIFolders. |
protected abstract String |
getTypeAttributeValue()
Gets the value of the type attribute for the node being created by the factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final ConfigurationFormatService FORMAT_SERVICE
protected JNDILinkNodeConfiguration config
Constructor Detail |
public AbstractJNDIConfigurationDocumentFactory(JNDILinkNodeConfiguration config)
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.Method Detail |
public Node getInstance(Node parent, String name) throws NodeCreationException
getInstance
in interface NodeFactory
parent
- the parent node of the folder to be created, must be of
type JNDIFoldername
- the name of the node to create
InvalidParameterException
- if parent is not
assignable from JNDIFolder or name is null
NodeCreationException
- if the LinkNode
cannot be
created.protected abstract String getTypeAttributeValue()
protected ConfigurationFormatService getConfigurationFormatService()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |