com.sun.enterprise.deployment.node
Class DeploymentExtensionNode

java.lang.Object
  extended by com.sun.enterprise.deployment.node.DeploymentDescriptorNode
      extended by com.sun.enterprise.deployment.node.DeploymentExtensionNode
All Implemented Interfaces:
XMLNode

public class DeploymentExtensionNode
extends DeploymentDescriptorNode

This node is responsible for handling the deployment-extension xml fragment

Author:
Jerome Dochez

Field Summary
 
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode
 
Constructor Summary
DeploymentExtensionNode()
           
 
Method Summary
 void addDescriptor(java.lang.Object descriptor)
          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.
 XMLNode getHandlerFor(XMLElement element)
          Return the XMLNode implementation respionsible for handling the sub-element of the current node
 boolean handlesElement(XMLElement element)
          Return true if the XMLNode is responisble for handling the XML element
 void setElementValue(XMLElement element, java.lang.String value)
          receives notification of the value for a particular tag
protected  void writeDescriptor(org.w3c.dom.Node parentNode, java.util.Iterator itr)
          write the deployment extensions nodes associated with this node
 
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, endElement, forceAppendTextChild, getDescriptor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getXMLPath, getXMLRootTag, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setParentNode, setXMLRootTag, startElement, writeAroundInvokeDescriptors, writeAroundTimeoutDescriptors, writeDataSourceDefinitionDescriptors, writeDescriptor, 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
 

Constructor Detail

DeploymentExtensionNode

public DeploymentExtensionNode()
Method Detail

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

handlesElement

public boolean handlesElement(XMLElement element)
Description copied from interface: XMLNode
Return true if the XMLNode is responisble for handling the XML element

Specified by:
handlesElement in interface XMLNode
Overrides:
handlesElement in class DeploymentDescriptorNode
Parameters:
element - the XML element type name
Returns:
true if the element tag can be handled by any registered sub nodes of the current XMLNode

getHandlerFor

public XMLNode getHandlerFor(XMLElement element)
Description copied from interface: XMLNode
Return the XMLNode implementation respionsible for handling the sub-element of the current node

Specified by:
getHandlerFor in interface XMLNode
Overrides:
getHandlerFor in class DeploymentDescriptorNode
Parameters:
element - the XML element type name
Returns:
the handler registered for the subtag element of the curent XMLNode

addDescriptor

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

Specified by:
addDescriptor in interface XMLNode
Overrides:
addDescriptor in class DeploymentDescriptorNode
Parameters:
descriptor - the new descriptor

writeDescriptor

protected void writeDescriptor(org.w3c.dom.Node parentNode,
                               java.util.Iterator itr)
write the deployment extensions nodes associated with this node

Parameters:
parent - node for the DOM tree
iterator - of deployment extension descriptor


Copyright © 2012 GlassFish Community. All Rights Reserved.