1 23 package com.sun.enterprise.deployment.node.runtime; 24 25 import java.util.Map ; 26 import java.util.HashMap ; 27 import org.w3c.dom.Node ; 28 29 import com.sun.enterprise.deployment.node.XMLElement; 30 import com.sun.enterprise.deployment.node.DeploymentDescriptorNode; 31 import com.sun.enterprise.deployment.runtime.PersistenceManagerInUse; 32 import com.sun.enterprise.deployment.xml.RuntimeTagNames; 33 34 40 41 public class PMInUseNode extends RuntimeDescriptorNode { 42 43 49 protected Map getDispatchTable() { 50 Map table = new HashMap (); 51 table.put(RuntimeTagNames.PM_IDENTIFIER, "set_pm_identifier"); 52 table.put(RuntimeTagNames.PM_VERSION, "set_pm_version"); 53 return table; 54 } 55 56 64 public Node writeDescriptor(Node parent, String nodeName, PersistenceManagerInUse descriptor) { 65 Node pmInUse = super.writeDescriptor(parent, nodeName, descriptor); 66 appendTextChild(pmInUse, RuntimeTagNames.PM_IDENTIFIER, descriptor.get_pm_identifier()); 67 appendTextChild(pmInUse, RuntimeTagNames.PM_VERSION, descriptor.get_pm_version()); 68 return pmInUse; 69 } 70 } 71 | Popular Tags |