1 23 package com.sun.enterprise.deployment.node.runtime.common; 24 25 import java.util.Map ; 26 import org.w3c.dom.Node ; 27 28 import com.sun.enterprise.deployment.node.XMLElement; 29 import com.sun.enterprise.deployment.node.runtime.RuntimeDescriptorNode; 30 import com.sun.enterprise.deployment.runtime.common.EjbRef; 31 import com.sun.enterprise.deployment.xml.RuntimeTagNames; 32 33 39 public class EjbRefNode extends RuntimeDescriptorNode { 40 41 47 protected Map getDispatchTable() { 48 Map table = super.getDispatchTable(); 49 table.put(RuntimeTagNames.EJB_REF_NAME, "setEjbRefName"); 50 table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); 51 return table; 52 } 53 54 62 public Node writeDescriptor(Node parent, String nodeName, EjbRef descriptor) { 63 Node ejbRef = appendChild(parent, nodeName); 64 appendTextChild(ejbRef, RuntimeTagNames.EJB_REF_NAME, descriptor.getEjbRefName()); 65 appendTextChild(ejbRef, RuntimeTagNames.JNDI_NAME, descriptor.getJndiName()); 66 return ejbRef; 67 } 68 } 69 | Popular Tags |