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