Class EjbNode
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<EjbDescriptor>
-
- org.glassfish.ejb.deployment.node.runtime.EjbNode
-
- All Implemented Interfaces:
XMLNode<EjbDescriptor>
public class EjbNode extends DeploymentDescriptorNode<EjbDescriptor>
This node handles all runtime information for ejbs- 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 EjbNode()
-
Method Summary
All 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 XMLNodebooleanendElement(XMLElement element)receives notification of the end of an XML element by the ParserEjbDescriptorgetDescriptor()protected Map<String,String>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.voidsetElementValue(XMLElement element, String value)receives notification of the value for a particular tagNodewriteDescriptor(Node parent, String nodeName, EjbDescriptor ejbDescriptor)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, setParentNode, setXMLRootTag, startElement, writeDescriptor, writeDescriptors, writeEjbReferenceDescriptors, writeEntityManagerFactoryReferenceDescriptors, writeEntityManagerReferenceDescriptors, writeEnvEntryDescriptors, writeJNDIEnvironmentRefs, writeLifeCycleCallbackDescriptors, writeLocalizedDescriptions, writeMessageDestinationRefDescriptors, writeResourceDescriptors, writeResourceEnvRefDescriptors, writeResourceRefDescriptors, writeServiceReferenceDescriptors, writeSimpleTextDescriptor, writeSubDescriptors
-
-
-
-
Method Detail
-
getDescriptor
public EjbDescriptor getDescriptor()
- Specified by:
getDescriptorin interfaceXMLNode<EjbDescriptor>- Overrides:
getDescriptorin classDeploymentDescriptorNode<EjbDescriptor>- Returns:
- the descriptor instance to associate with this XMLNode
-
setElementValue
public void setElementValue(XMLElement element, String value)
receives notification of the value for a particular tag- Specified by:
setElementValuein interfaceXMLNode<EjbDescriptor>- Overrides:
setElementValuein classDeploymentDescriptorNode<EjbDescriptor>- Parameters:
element- the xml elementvalue- it's associated value
-
getDispatchTable
protected Map<String,String> 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 classDeploymentDescriptorNode<EjbDescriptor>- 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:DeploymentDescriptorNodereceives notification of the end of an XML element by the Parser- Specified by:
endElementin interfaceXMLNode<EjbDescriptor>- Overrides:
endElementin classDeploymentDescriptorNode<EjbDescriptor>- Parameters:
element- the xml tag identification- Returns:
- true if this node is done processing the XML sub tree
-
addDescriptor
public void addDescriptor(Object newDescriptor)
Adds a new DOL descriptor instance to the descriptor instance associated with this XMLNode- Specified by:
addDescriptorin interfaceXMLNode<EjbDescriptor>- Overrides:
addDescriptorin classDeploymentDescriptorNode<EjbDescriptor>- Parameters:
descriptor- the new descriptor
-
writeDescriptor
public Node writeDescriptor(Node parent, String nodeName, EjbDescriptor ejbDescriptor)
write the descriptor class to a DOM tree and return it- Overrides:
writeDescriptorin classDeploymentDescriptorNode<EjbDescriptor>- Parameters:
parent- node for the DOM treenode- name for the descriptorthe- descriptor to write- Returns:
- the DOM tree top node
-
-