Class EnvEntryNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<EnvironmentProperty>
-
- com.sun.enterprise.deployment.node.EnvEntryNode
-
- All Implemented Interfaces:
XMLNode<EnvironmentProperty>
public class EnvEntryNode extends DeploymentDescriptorNode<EnvironmentProperty>
This node is responsible for handling all env-entry related xml tags- Version:
- Author:
- Jerome Dochez
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
abstractDescriptor, handlers, localStrings, parentNode, rootNode, serviceLocator
-
-
Constructor Summary
Constructors Constructor Description EnvEntryNode()
-
Method Summary
All 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 XMLNodeboolean
endElement(XMLElement element)
receives notification of the end of an XML element by the ParserEnvironmentProperty
getDescriptor()
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.Node
writeDescriptor(Node parent, String nodeName, EnvironmentProperty envProp)
write the descriptor class to a DOM tree and return it-
Methods inherited from class com.sun.enterprise.deployment.node.DeploymentDescriptorNode
addNamespaceDeclaration, addNodeDescriptor, addPrefixMapping, appendChild, appendQNameChild, appendTextChild, appendTextChild, composeQNameValue, createDescriptor, forceAppendTextChild, getHandlerFor, getLocalPartFromQName, getOwnerDocument, getParentNode, getPrefixFromQName, getRootNode, getXMLPath, getXMLRootTag, handlesElement, postParsing, registerElementHandler, registerElementHandler, resolvePrefix, setAttribute, setAttributeNS, setAttributeValue, setDescriptorInfo, setElementValue, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
-
-
-
Method Detail
-
getDescriptor
public EnvironmentProperty getDescriptor()
- Specified by:
getDescriptor
in interfaceXMLNode<EnvironmentProperty>
- Overrides:
getDescriptor
in classDeploymentDescriptorNode<EnvironmentProperty>
- Returns:
- the descriptor instance to associate with this XMLNode
-
getDispatchTable
protected Map getDispatchTable()
Description copied from class:DeploymentDescriptorNode
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 classDeploymentDescriptorNode<EnvironmentProperty>
- Returns:
- the map with the element name as a key, the setter method as a value
-
endElement
public boolean endElement(XMLElement element)
Description copied from class:DeploymentDescriptorNode
receives notification of the end of an XML element by the Parser- Specified by:
endElement
in interfaceXMLNode<EnvironmentProperty>
- Overrides:
endElement
in classDeploymentDescriptorNode<EnvironmentProperty>
- Parameters:
element
- the xml tag identification- Returns:
- true if this node is done processing the XML sub tree
-
addDescriptor
public void addDescriptor(Object newDescriptor)
Description copied from class:DeploymentDescriptorNode
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptor
in interfaceXMLNode<EnvironmentProperty>
- Overrides:
addDescriptor
in classDeploymentDescriptorNode<EnvironmentProperty>
- Parameters:
newDescriptor
- the new descriptor
-
writeDescriptor
public Node writeDescriptor(Node parent, String nodeName, EnvironmentProperty envProp)
Description copied from class:DeploymentDescriptorNode
write the descriptor class to a DOM tree and return it- Overrides:
writeDescriptor
in classDeploymentDescriptorNode<EnvironmentProperty>
- Parameters:
parent
- node in the DOM treenodeName
- name for the root element for this DOM tree fragmentenvProp
- the descriptor to write- Returns:
- the DOM tree top node
-
-