com.sun.enterprise.deployment.node.runtime.web
Class WebBundleRuntimeNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
      extended by com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode<WebBundleDescriptor>
          extended by com.sun.enterprise.deployment.node.runtime.web.WebBundleRuntimeNode
All Implemented Interfaces:
RootXMLNode<WebBundleDescriptor>, XMLNode<WebBundleDescriptor>
Direct Known Subclasses:
GFWebBundleRuntimeNode

public class WebBundleRuntimeNode
extends RuntimeBundleNode<WebBundleDescriptor>

This node is responsible for handling all runtime information for web 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
WebBundleRuntimeNode()
          Creates new WebBundleRuntimeNode
WebBundleRuntimeNode(WebBundleDescriptor descriptor)
          Creates new WebBundleRuntimeNode
 
Method Summary
 void addDescriptor(java.lang.Object newDescriptor)
          Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode
 WebBundleDescriptor getDescriptor()
           
 java.lang.String getDocType()
           
 java.lang.Object getSunDescriptor()
           
 java.lang.String getSystemID()
           
 java.util.List<java.lang.String> getSystemIDs()
           
 WebBundleDescriptor getWebBundleDescriptor()
           
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
protected  boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, java.lang.String value)
          parsed an attribute of an element
 void setElementValue(XMLElement element, java.lang.String value)
          receives notification of the value for a particular tag
 void startElement(XMLElement element, org.xml.sax.Attributes attributes)
          SAX Parser API implementation, we don't really care for now.
 org.w3c.dom.Node writeDescriptor(org.w3c.dom.Node parent, WebBundleDescriptor 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, 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, setDescriptorInfo, setParentNode, setXMLRootTag, 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
 

Constructor Detail

WebBundleRuntimeNode

public WebBundleRuntimeNode(WebBundleDescriptor descriptor)
Creates new WebBundleRuntimeNode


WebBundleRuntimeNode

public WebBundleRuntimeNode()
Creates new WebBundleRuntimeNode

Method Detail

Init

protected void Init()
Initialize the child handlers

Overrides:
Init in class RuntimeBundleNode<WebBundleDescriptor>

getXMLRootTag

protected XMLElement getXMLRootTag()
Overrides:
getXMLRootTag in class DeploymentDescriptorNode<WebBundleDescriptor>
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.

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

getSunDescriptor

public java.lang.Object getSunDescriptor()
Returns:
the descriptor instance to associate with this XMLNode

getDescriptor

public WebBundleDescriptor getDescriptor()
Specified by:
getDescriptor in interface XMLNode<WebBundleDescriptor>
Overrides:
getDescriptor in class RuntimeBundleNode<WebBundleDescriptor>
Returns:
the web bundle descriptor instance to associate with this XMLNode

getWebBundleDescriptor

public WebBundleDescriptor getWebBundleDescriptor()

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<WebBundleDescriptor>
Overrides:
addDescriptor in class RuntimeBundleNode<WebBundleDescriptor>
Parameters:
descriptor - the new descriptor

startElement

public void startElement(XMLElement element,
                         org.xml.sax.Attributes attributes)
Description copied from class: DeploymentDescriptorNode
SAX Parser API implementation, we don't really care for now.

Specified by:
startElement in interface XMLNode<WebBundleDescriptor>
Overrides:
startElement in class DeploymentDescriptorNode<WebBundleDescriptor>
Parameters:
element - the XML element type name
attributes - the specified or defaultted attritutes

setAttributeValue

protected boolean setAttributeValue(XMLElement elementName,
                                    XMLElement attributeName,
                                    java.lang.String value)
parsed an attribute of an element

Overrides:
setAttributeValue in class DeploymentDescriptorNode<WebBundleDescriptor>
Parameters:
the - element name
the - attribute name
the - attribute value
Returns:
true if the attribute was processed

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<WebBundleDescriptor>
Overrides:
setElementValue in class DeploymentDescriptorNode<WebBundleDescriptor>
Parameters:
element - the xml element
value - it's associated value

writeDescriptor

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

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


Copyright © 2012 GlassFish Community. All Rights Reserved.