Class ApplicationRuntimeNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode<Application>
-
- com.sun.enterprise.deployment.node.runtime.application.gf.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, elementToNodeMappings
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description ApplicationRuntimeNode(Application descriptor)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDescriptor(Object newDescriptor)Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNodeprotected MapgetDispatchTable()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.StringgetDocType()StringgetSystemID()List<String>getSystemIDs()protected XMLElementgetXMLRootTag()protected voidinit()Initialize the child handlersstatic StringregisterBundle(Map publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)register this node as a root node capable of loading entire DD filesvoidsetElementValue(XMLElement element, String value)receives notification of the value for a particular tagNodewriteDescriptor(Node parent, 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, getNodeMappings, getSpecVersion, 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, writeDescriptor
-
-
-
-
Constructor Detail
-
ApplicationRuntimeNode
public ApplicationRuntimeNode(Application descriptor)
-
-
Method Detail
-
init
protected void init()
Initialize the child handlers- Overrides:
initin classRuntimeBundleNode<Application>
-
registerBundle
public static String registerBundle(Map publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)
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:
getXMLRootTagin classDeploymentDescriptorNode<Application>- Returns:
- the XML tag associated with this XMLNode
-
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
-
getDispatchTable
protected 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:
getDispatchTablein classRuntimeBundleNode<Application>- Returns:
- the map with the element name as a key, the setter method as a value
-
setElementValue
public void setElementValue(XMLElement element, String value)
receives notification of the value for a particular tag- Specified by:
setElementValuein interfaceXMLNode<Application>- Overrides:
setElementValuein classRuntimeBundleNode<Application>- Parameters:
element- the xml elementvalue- it's associated value
-
addDescriptor
public void addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptorin interfaceXMLNode<Application>- Overrides:
addDescriptorin classRuntimeBundleNode<Application>- Parameters:
newDescriptor- the new descriptor
-
writeDescriptor
public Node writeDescriptor(Node parent, String nodeName, Application application)
write the descriptor class to a DOM tree and return it- Overrides:
writeDescriptorin classDeploymentDescriptorNode<Application>- Parameters:
parent- node for the DOM treenodeName- the node nameapplication- the descriptor to write- Returns:
- the DOM tree top node
-
-