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 DestinationResourceNode extends ResourceLeafNode { 28 29 private static final String NODE_TYPE = NodeTypes.DESTINATION_RESOURCE; 30 31 32 35 public DestinationResourceNode(final AppserverMgmtController controller, 36 final String resourceName) { 37 super(controller, NODE_TYPE, resourceName); 38 } 39 40 41 47 protected java.util.Map getSheetProperties() { 48 return getAppserverMgmtController(). 49 getDestinationResourceProperties(getResourceName(), 50 getPropertiesToIgnore()); 51 } 52 53 54 65 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 66 return getAppserverMgmtController(). 67 setDestinationResourceProperty(getResourceName(), attrName, value); 68 } 69 70 73 public void remove() { 74 getAppserverMgmtController(). 75 deleteDestinationResource(getResourceName()); 76 } 77 } 78 | Popular Tags |