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