1 19 package org.netbeans.modules.j2ee.sun.ide.runtime.nodes; 20 21 import org.netbeans.modules.j2ee.sun.bridge.apis.AppserverMgmtController; 22 import org.netbeans.modules.j2ee.sun.util.NodeTypes; 23 24 25 27 public class AdminObjectResourceNode extends ResourceLeafNode { 28 29 private static final String NODE_TYPE = NodeTypes.ADMIN_OBJECT_RESOURCE; 30 31 32 35 public AdminObjectResourceNode(final AppserverMgmtController controller, 36 final String adminObjName) { 37 super(controller, NODE_TYPE, adminObjName); 38 } 39 40 41 46 protected java.util.Map getSheetProperties() { 47 return getAppserverMgmtController(). 48 getAdminObjectResourceProperties(getResourceName(), 49 getPropertiesToIgnore()); 50 } 51 52 53 64 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 65 return getAppserverMgmtController(). 66 setAdminObjectResourceProperty(getResourceName(), attrName, 67 value); 68 } 69 70 73 public void remove() { 74 getAppserverMgmtController(). 75 deleteAdminObjectResource(getResourceName()); 76 } 77 78 } 79 | Popular Tags |