Class EjbBundleRuntimeNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode<EjbBundleDescriptorImpl>
-
- org.glassfish.ejb.deployment.node.runtime.EjbBundleRuntimeNode
-
- All Implemented Interfaces:
RootXMLNode<EjbBundleDescriptorImpl>
,XMLNode<EjbBundleDescriptorImpl>
- Direct Known Subclasses:
GFEjbBundleRuntimeNode
public class EjbBundleRuntimeNode extends RuntimeBundleNode<EjbBundleDescriptorImpl>
This node handles runtime deployment descriptors for ejb bundle- Version:
- Author:
- Jerome Dochez
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode
descriptor, elementToNodeMappings
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description EjbBundleRuntimeNode()
EjbBundleRuntimeNode(EjbBundleDescriptorImpl descriptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNodeEjbBundleDescriptorImpl
getDescriptor()
String
getDocType()
String
getSystemID()
List<String>
getSystemIDs()
protected XMLElement
getXMLRootTag()
static String
registerBundle(Map publicIDToDTD)
register this node as a root node capable of loading entire DD filesvoid
setElementValue(XMLElement element, String value)
receives notiification of the value for a particular tagNode
writeDescriptor(Node parent, EjbBundleDescriptorImpl bundleDescriptor)
write the descriptor class to a DOM tree and return it-
Methods inherited from class com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode
appendChildNS, getDispatchTable, getNodeMappings, getSpecVersion, init, recordNodeMapping, restrictDTDDeclarations, setDocType, setSpecVersion, writeMessageDestinationInfo
-
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, endElement, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.deployment.node.XMLNode
addPrefixMapping, endElement, getHandlerFor, getParentNode, getRootNode, getXMLPath, handlesElement, resolvePrefix, startElement
-
-
-
-
Constructor Detail
-
EjbBundleRuntimeNode
public EjbBundleRuntimeNode(EjbBundleDescriptorImpl descriptor)
-
EjbBundleRuntimeNode
public EjbBundleRuntimeNode()
-
-
Method Detail
-
getDocType
public String getDocType()
- Returns:
- the DOCTYPE that should be written to the XML file
-
getSystemID
public String getSystemID()
- Returns:
- the SystemID of the XML file
-
getXMLRootTag
protected XMLElement getXMLRootTag()
- Overrides:
getXMLRootTag
in classDeploymentDescriptorNode<EjbBundleDescriptorImpl>
- Returns:
- the XML tag associated with this XMLNode
-
registerBundle
public static String registerBundle(Map publicIDToDTD)
register this node as a root node capable of loading entire DD files- Parameters:
publicIDToDTD
- is a mapping between xml Public-ID to DTD- Returns:
- the doctype tag name
-
getDescriptor
public EjbBundleDescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceXMLNode<EjbBundleDescriptorImpl>
- Overrides:
getDescriptor
in classRuntimeBundleNode<EjbBundleDescriptorImpl>
- Returns:
- the descriptor instance to associate with this XMLNode
-
setElementValue
public void setElementValue(XMLElement element, String value)
Description copied from class:RuntimeBundleNode
receives notiification of the value for a particular tag- Specified by:
setElementValue
in interfaceXMLNode<EjbBundleDescriptorImpl>
- Overrides:
setElementValue
in classRuntimeBundleNode<EjbBundleDescriptorImpl>
- Parameters:
element
- the xml elementvalue
- it's associated value
-
addDescriptor
public void addDescriptor(Object newDescriptor)
Description copied from class:RuntimeBundleNode
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptor
in interfaceXMLNode<EjbBundleDescriptorImpl>
- Overrides:
addDescriptor
in classRuntimeBundleNode<EjbBundleDescriptorImpl>
- Parameters:
newDescriptor
- the new descriptor
-
writeDescriptor
public Node writeDescriptor(Node parent, EjbBundleDescriptorImpl bundleDescriptor)
Description copied from class:DeploymentDescriptorNode
write the descriptor class to a DOM tree and return it- Specified by:
writeDescriptor
in interfaceXMLNode<EjbBundleDescriptorImpl>
- Overrides:
writeDescriptor
in classDeploymentDescriptorNode<EjbBundleDescriptorImpl>
- Parameters:
parent
- node in the DOM treebundleDescriptor
- the descriptor to write- Returns:
- the DOM tree top node
-
-