com.sun.enterprise.deployment.node.runtime
Class EjbBundleRuntimeNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
      extended by com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode<EjbBundleDescriptor>
          extended by com.sun.enterprise.deployment.node.runtime.EjbBundleRuntimeNode
All Implemented Interfaces:
RootXMLNode<EjbBundleDescriptor>, XMLNode<EjbBundleDescriptor>
Direct Known Subclasses:
GFEjbBundleRuntimeNode

public class EjbBundleRuntimeNode
extends RuntimeBundleNode<EjbBundleDescriptor>

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
 
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode
 
Constructor Summary
EjbBundleRuntimeNode()
          Creates new EjbBundleRuntimeNode
EjbBundleRuntimeNode(EjbBundleDescriptor descriptor)
          Creates new EjbBundleRuntimeNode
 
Method Summary
 void addDescriptor(java.lang.Object newDescriptor)
          Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode
 EjbBundleDescriptor getDescriptor()
           
 java.lang.String getDocType()
           
 java.lang.String getSystemID()
           
 java.util.List<java.lang.String> getSystemIDs()
           
protected  XMLElement getXMLRootTag()
           
static java.lang.String registerBundle(java.util.Map publicIDToDTD)
          register this node as a root node capable of loading entire DD files
 void setElementValue(XMLElement element, java.lang.String value)
          receives notification of the value for a particular tag
 org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent, EjbBundleDescriptor bundleDescriptor)
          write the descriptor class to a DOM tree and return it
 
Methods inherited from class com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode
appendChildNS, getSpecVersion, Init, restrictDTDDeclarations, setDocType, setSpecVersion, writeMessageDestinationInfo
 
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, endElement, forceAppendTextChild, getDispatchTable, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeAroundInvokeDescriptors, writeAroundTimeoutDescriptors, writeDataSourceDefinitionDescriptors, writeDescriptor, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writePostActivateDescriptors, writePostConstructDescriptors, writePreDestroyDescriptors, writePrePassivateDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors
 
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, getXMLPath, handlesElement, resolvePrefix, startElement
 

Constructor Detail

EjbBundleRuntimeNode

public EjbBundleRuntimeNode(EjbBundleDescriptor descriptor)
Creates new EjbBundleRuntimeNode


EjbBundleRuntimeNode

public EjbBundleRuntimeNode()
Creates new EjbBundleRuntimeNode

Method Detail

getDocType

public java.lang.String getDocType()
Returns:
the DOCTYPE that should be written to the XML file

getSystemID

public java.lang.String getSystemID()
Returns:
the SystemID of the XML file

getSystemIDs

public java.util.List<java.lang.String> getSystemIDs()
Returns:
NULL for all runtime nodes.

getXMLRootTag

protected XMLElement getXMLRootTag()
Overrides:
getXMLRootTag in class DeploymentDescriptorNode<EjbBundleDescriptor>
Returns:
the XML tag associated with this XMLNode

registerBundle

public static java.lang.String registerBundle(java.util.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 EjbBundleDescriptor getDescriptor()
Specified by:
getDescriptor in interface XMLNode<EjbBundleDescriptor>
Overrides:
getDescriptor in class RuntimeBundleNode<EjbBundleDescriptor>
Returns:
the descriptor instance to associate with this XMLNode

setElementValue

public void setElementValue(XMLElement element,
                            java.lang.String value)
receives notification of the value for a particular tag

Specified by:
setElementValue in interface XMLNode<EjbBundleDescriptor>
Overrides:
setElementValue in class DeploymentDescriptorNode<EjbBundleDescriptor>
Parameters:
element - the xml element
value - it's associated value

addDescriptor

public void addDescriptor(java.lang.Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode

Specified by:
addDescriptor in interface XMLNode<EjbBundleDescriptor>
Overrides:
addDescriptor in class RuntimeBundleNode<EjbBundleDescriptor>
Parameters:
descriptor - the new descriptor

writeDescriptor

public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
                                        EjbBundleDescriptor bundleDescriptor)
write the descriptor class to a DOM tree and return it

Specified by:
writeDescriptor in interface XMLNode<EjbBundleDescriptor>
Overrides:
writeDescriptor in class DeploymentDescriptorNode<EjbBundleDescriptor>
Parameters:
parent - node for the DOM tree
the - descriptor to write
Returns:
the DOM tree top node


Copyright © 2012 GlassFish Community. All Rights Reserved.