EjbInitNodepublic class EjbInitNode extends com.sun.enterprise.deployment.node.DeploymentDescriptorNode
Constructors Summary |
---|
public EjbInitNode()
super();
registerElementHandler(new XMLElement(EjbTagNames.INIT_CREATE_METHOD), MethodNode.class, "setCreateMethod");
registerElementHandler(new XMLElement(EjbTagNames.INIT_BEAN_METHOD), MethodNode.class, "setBeanMethod");
|
Methods Summary |
---|
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.
// no need to be synchronized for now
Map table = super.getDispatchTable();
return table;
| public org.w3c.dom.Node | writeDescriptor(org.w3c.dom.Node parent, java.lang.String nodeName, com.sun.enterprise.deployment.EjbInitInfo initMethod)write the relationships descriptor class to a DOM tree and return it
Node initNode = appendChild(parent, nodeName);
MethodNode methodNode = new MethodNode();
methodNode.writeJavaMethodDescriptor
(initNode, EjbTagNames.INIT_CREATE_METHOD,
initMethod.getCreateMethod());
methodNode.writeJavaMethodDescriptor
(initNode, EjbTagNames.INIT_BEAN_METHOD,
initMethod.getBeanMethod());
return initNode;
|
|