1 19 package org.netbeans.modules.j2ee.sun.ide.runtime.nodes; 20 21 22 import org.netbeans.modules.j2ee.sun.bridge.apis.AppserverMgmtController; 23 import org.netbeans.modules.j2ee.sun.util.NodeTypes; 24 25 27 public class PersistenceManagerResourceNode extends ResourceLeafNode { 28 29 private static final String NODE_TYPE = NodeTypes.PM_RESOURCE; 30 31 32 public PersistenceManagerResourceNode( 33 final AppserverMgmtController controller, 34 final String pmResourceName) { 35 super(controller, NODE_TYPE, pmResourceName); 36 } 37 38 43 protected java.util.Map getSheetProperties() { 44 return getAppserverMgmtController(). 45 getPersistenceManagerFactoryProperties(getResourceName(), 46 getPropertiesToIgnore()); 47 } 48 49 50 61 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 62 return getAppserverMgmtController(). 63 setPersistenceManagerResourceFactoryProperty(getResourceName(), 64 attrName, value); 65 } 66 67 70 public void remove() { 71 getAppserverMgmtController(). 72 deletePersistenceManagerResourceFactory(getResourceName()); 73 } 74 75 } 76 | Popular Tags |