1 23 24 29 30 package com.sun.enterprise.deployment.node; 31 32 import java.util.Map ; 33 import org.w3c.dom.Node ; 34 import com.sun.enterprise.deployment.Descriptor; 35 import com.sun.enterprise.deployment.RunAsIdentityDescriptor; 36 import com.sun.enterprise.deployment.xml.EjbTagNames; 37 38 44 public class RunAsNode extends DeploymentDescriptorNode { 45 46 52 protected Map getDispatchTable() { 53 Map table = super.getDispatchTable(); 55 table.put(EjbTagNames.ROLE_NAME, "setRoleName"); 56 return table; 57 } 58 59 67 public Node writeDescriptor(Node parent, String nodeName, RunAsIdentityDescriptor descriptor) { 68 Node subNode = super.writeDescriptor(parent, nodeName, descriptor); 69 LocalizedInfoNode localizedNode = new LocalizedInfoNode(); 70 writeLocalizedDescriptions(subNode, descriptor); 71 appendTextChild(subNode, EjbTagNames.ROLE_NAME, descriptor.getRoleName()); 72 return subNode; 73 } 74 75 } 76 | Popular Tags |