Class WebBundleRuntimeNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode<WebBundleDescriptorImpl>
-
- org.glassfish.web.deployment.node.runtime.gf.WebBundleRuntimeNode
-
- All Implemented Interfaces:
RootXMLNode<WebBundleDescriptorImpl>
,XMLNode<WebBundleDescriptorImpl>
- Direct Known Subclasses:
GFWebBundleRuntimeNode
public class WebBundleRuntimeNode extends RuntimeBundleNode<WebBundleDescriptorImpl>
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, elementToNodeMappings
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description WebBundleRuntimeNode()
Creates new WebBundleRuntimeNodeWebBundleRuntimeNode(WebBundleDescriptorImpl descriptor)
Creates new WebBundleRuntimeNode
-
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 XMLNodeString
getDocType()
Object
getSunDescriptor()
String
getSystemID()
List<String>
getSystemIDs()
protected XMLElement
getXMLRootTag()
protected void
init()
Initialize the child handlersstatic String
registerBundle(Map<String,String> publicIDToDTD, Map<String,List<Class<?>>> versionUpgrades)
register this node as a root node capable of loading entire DD filesprotected boolean
setAttributeValue(XMLElement elementName, XMLElement attributeName, String value)
parsed an attribute of an elementvoid
setElementValue(XMLElement element, String value)
receives notification of the value for a particular tagvoid
startElement(XMLElement element, Attributes attributes)
SAX Parser API implementation, we don't really care for now.Node
writeDescriptor(Node parent, WebBundleDescriptorImpl bundleDescriptor)
write the descriptor class to a DOM tree and return it-
Methods inherited from class com.sun.enterprise.deployment.node.runtime.RuntimeBundleNode
appendChildNS, getDescriptor, getDispatchTable, 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, setDescriptorInfo, setParentNode, setXMLRootTag, 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
-
-
-
-
Constructor Detail
-
WebBundleRuntimeNode
public WebBundleRuntimeNode(WebBundleDescriptorImpl descriptor)
Creates new WebBundleRuntimeNode- Parameters:
descriptor
-
-
WebBundleRuntimeNode
public WebBundleRuntimeNode()
Creates new WebBundleRuntimeNode
-
-
Method Detail
-
init
protected void init()
Initialize the child handlers- Overrides:
init
in classRuntimeBundleNode<WebBundleDescriptorImpl>
-
getXMLRootTag
protected XMLElement getXMLRootTag()
- Overrides:
getXMLRootTag
in classDeploymentDescriptorNode<WebBundleDescriptorImpl>
- 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
-
registerBundle
public static String registerBundle(Map<String,String> 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 DTDversionUpgrades
- The list of upgrades from older versions to the latest schema- Returns:
- the doctype tag name
-
getSunDescriptor
public Object getSunDescriptor()
- Returns:
- the descriptor instance to associate with this XMLNode
-
addDescriptor
public void addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptor
in interfaceXMLNode<WebBundleDescriptorImpl>
- Overrides:
addDescriptor
in classRuntimeBundleNode<WebBundleDescriptorImpl>
- Parameters:
newDescriptor
- the new descriptor
-
startElement
public void startElement(XMLElement element, Attributes attributes)
Description copied from class:DeploymentDescriptorNode
SAX Parser API implementation, we don't really care for now.- Specified by:
startElement
in interfaceXMLNode<WebBundleDescriptorImpl>
- Overrides:
startElement
in classDeploymentDescriptorNode<WebBundleDescriptorImpl>
- Parameters:
element
- the XML element type nameattributes
- the specified or defaultted attritutes
-
setAttributeValue
protected boolean setAttributeValue(XMLElement elementName, XMLElement attributeName, String value)
parsed an attribute of an element- Overrides:
setAttributeValue
in classDeploymentDescriptorNode<WebBundleDescriptorImpl>
- Parameters:
elementName
- the element nameattributeName
- the attribute namevalue
- the attribute value- Returns:
- true if the attribute was processed
-
setElementValue
public void setElementValue(XMLElement element, String value)
receives notification of the value for a particular tag- Specified by:
setElementValue
in interfaceXMLNode<WebBundleDescriptorImpl>
- Overrides:
setElementValue
in classRuntimeBundleNode<WebBundleDescriptorImpl>
- Parameters:
element
- the xml elementvalue
- it's associated value
-
writeDescriptor
public Node writeDescriptor(Node parent, WebBundleDescriptorImpl bundleDescriptor)
write the descriptor class to a DOM tree and return it- Specified by:
writeDescriptor
in interfaceXMLNode<WebBundleDescriptorImpl>
- Overrides:
writeDescriptor
in classDeploymentDescriptorNode<WebBundleDescriptorImpl>
- Parameters:
parent
- node for the DOM treebundleDescriptor
- the descriptor to write- Returns:
- the DOM tree top node
-
-