com.sun.enterprise.deployment.node.runtime.application
Class ApplicationRuntimeNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
      extended by com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode<Application>
          extended by com.sun.enterprise.deployment.node.runtime.application.ApplicationRuntimeNode
All Implemented Interfaces:
RootXMLNode<Application>, XMLNode<Application>
Direct Known Subclasses:
GFApplicationRuntimeNode

public class ApplicationRuntimeNode
extends RuntimeBundleNode<Application>

This node handles all runtime-information pertinent to applications The reading needs to be backward compatible with J2EE 1.2 and 1.3 where all runtime information was saved at the .ear file level in an unique sun-ri.xml file. In J2EE 1.4, each sub archivist is responsible for saving its runtime-info at his level.

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
ApplicationRuntimeNode(Application descriptor)
           
 
Method Summary
 void addDescriptor(java.lang.Object newDescriptor)
          Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode
protected  java.util.Map getDispatchTable()
          all sub-implementation of this class can use a dispatch table to map xml element to method name on the descriptor class for setting the element value.
 java.lang.String getDocType()
           
 java.lang.String getSystemID()
           
 java.util.List<java.lang.String> getSystemIDs()
           
protected  XMLElement getXMLRootTag()
           
protected  void Init()
          Initialize the child handlers
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, java.lang.String nodeName, Application application)
          write the descriptor class to a DOM tree and return it
 
Methods inherited from class com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode
appendChildNS, getDescriptor, getSpecVersion, restrictDTDDeclarations, setDocType, setSpecVersion, writeMessageDestinationInfo
 
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, endElement, forceAppendTextChild, 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, writeDescriptor
 

Constructor Detail

ApplicationRuntimeNode

public ApplicationRuntimeNode(Application descriptor)
Method Detail

Init

protected void Init()
Initialize the child handlers

Overrides:
Init in class RuntimeBundleNode<Application>

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

getXMLRootTag

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

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.

getDispatchTable

protected java.util.Map getDispatchTable()
all sub-implementation of this class can use a dispatch table to map xml element to method name on the descriptor class for setting the element value.

Overrides:
getDispatchTable in class DeploymentDescriptorNode<Application>
Returns:
the map with the element name as a key, the setter method as a value

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<Application>
Overrides:
setElementValue in class DeploymentDescriptorNode<Application>
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<Application>
Overrides:
addDescriptor in class RuntimeBundleNode<Application>
Parameters:
mewDescriptor - the new descriptor

writeDescriptor

public org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent,
                                        java.lang.String nodeName,
                                        Application application)
write the descriptor class to a DOM tree and return it

Overrides:
writeDescriptor in class DeploymentDescriptorNode<Application>
Parameters:
parent - node for the DOM tree
nodeName - the node name
descriptor - the descriptor to write
Returns:
the DOM tree top node


Copyright © 2012 GlassFish Community. All Rights Reserved.