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.ResourceEnvRef; 31 import com.sun.enterprise.deployment.xml.RuntimeTagNames; 32 33 39 public class ResourceEnvRefNode extends RuntimeDescriptorNode { 40 41 47 protected Map getDispatchTable() { 48 Map table = super.getDispatchTable(); 49 table.put(RuntimeTagNames.RESOURCE_ENV_REF_NAME, "setResourceEnvRefName"); 50 table.put(RuntimeTagNames.JNDI_NAME, "setJndiName"); 51 return table; 52 } 53 54 62 public Node writeDescriptor(Node parent, String nodeName, ResourceEnvRef descriptor) { 63 Node ejbRef = appendChild(parent, nodeName); 64 appendTextChild(ejbRef, RuntimeTagNames.RESOURCE_ENV_REF_NAME, descriptor.getResourceEnvRefName()); 65 appendTextChild(ejbRef, RuntimeTagNames.JNDI_NAME, descriptor.getJndiName()); 66 return ejbRef; 67 } 68 } 69 | Popular Tags |