1 19 package org.netbeans.modules.j2ee.sun.ide.runtime.nodes; 20 21 22 import org.netbeans.modules.j2ee.sun.bridge.apis.AppserverMgmtLeafNode; 23 import org.netbeans.modules.j2ee.sun.util.NodeTypes; 24 import org.netbeans.modules.j2ee.sun.ide.controllers.ConnectorModuleController; 25 26 28 public class ResourceAdapterNode extends AppserverMgmtLeafNode { 29 30 private static final String NODE_TYPE = NodeTypes.RESOURCE_ADAPTER; 31 private ConnectorModuleController controller; 32 private String resAdapterName; 33 34 41 public ResourceAdapterNode(ConnectorModuleController controller, 42 String resAdapterName) { 43 super(NODE_TYPE); 44 this.resAdapterName = resAdapterName; 45 this.controller = controller; 46 setDisplayName(resAdapterName); 47 } 48 49 public ResourceAdapterNode(String name) { 50 super(NODE_TYPE); 51 this.resAdapterName = name; 52 setDisplayName(name); 53 } 54 55 60 protected java.util.Map getSheetProperties() { 61 return controller.getResourceAdapterProperties(resAdapterName, 62 getPropertiesToIgnore()); 63 } 64 65 66 77 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 78 return controller.setResourceAdapterProperty(resAdapterName, attrName, value); 79 } 80 81 } 82 | Popular Tags |