Class EjbNode<S extends EjbDescriptor>
- java.lang.Object
-
- com.sun.enterprise.deployment.node.DeploymentDescriptorNode<T>
-
- com.sun.enterprise.deployment.node.DisplayableComponentNode<S>
-
- org.glassfish.ejb.deployment.node.EjbNode<S>
-
- All Implemented Interfaces:
XMLNode<S>
- Direct Known Subclasses:
InterfaceBasedEjbNode
,MessageDrivenBeanNode
public abstract class EjbNode<S extends EjbDescriptor> extends DisplayableComponentNode<S>
This class is responsible for handling all common information shared by all types of enterprise beans (MDB, session, entity)- 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()
Creates new EjbNode
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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 XMLNodeS
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.abstract S
getEjbDescriptor()
protected static void
writeAroundInvokeDescriptors(Node parentNode, Iterator aroundInvokeDescs)
protected static void
writeAroundTimeoutDescriptors(Node parentNode, Iterator aroundTimeoutDescs)
protected void
writeCommonHeaderEjbDescriptor(Node ejbNode, EjbDescriptor descriptor)
write the common descriptor info to a DOM tree and return itprotected void
writeRoleReferenceDescriptors(Node parentNode, Iterator refs)
write the security role references to the DOM Treeprotected void
writeSecurityIdentityDescriptor(Node parent, EjbDescriptor descriptor)
write the security identity information about an EJB-
Methods inherited from class com.sun.enterprise.deployment.node.DisplayableComponentNode
writeDescriptor, writeDisplayableComponentInfo
-
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, 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
-
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<S extends EjbDescriptor>
- Overrides:
addDescriptor
in classDeploymentDescriptorNode<S extends EjbDescriptor>
- Parameters:
newDescriptor
- the new descriptor
-
getDescriptor
public S getDescriptor()
- Specified by:
getDescriptor
in interfaceXMLNode<S extends EjbDescriptor>
- Overrides:
getDescriptor
in classDeploymentDescriptorNode<S extends EjbDescriptor>
- Returns:
- the descriptor instance to associate with this XMLNode
-
getEjbDescriptor
public abstract S getEjbDescriptor()
-
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<S extends EjbDescriptor>
- Returns:
- the map with the element name as a key, the setter method as a value
-
writeCommonHeaderEjbDescriptor
protected void writeCommonHeaderEjbDescriptor(Node ejbNode, EjbDescriptor descriptor)
write the common descriptor info to a DOM tree and return it- Parameters:
parent
- node for the DOM treethe
- descriptor to write
-
writeSecurityIdentityDescriptor
protected void writeSecurityIdentityDescriptor(Node parent, EjbDescriptor descriptor)
write the security identity information about an EJB- Parameters:
parent
- node for the DOM treethe
- EJB descriptor the security information to be retrieved
-
writeRoleReferenceDescriptors
protected void writeRoleReferenceDescriptors(Node parentNode, Iterator refs)
write the security role references to the DOM Tree- Parameters:
parentNode
- for the DOM treerefs
- iterator over the RoleReference descriptors to write
-
writeAroundInvokeDescriptors
protected static void writeAroundInvokeDescriptors(Node parentNode, Iterator aroundInvokeDescs)
-
-