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 JavaMailResourceNode extends ResourceLeafNode { 28 29 private static final String NODE_TYPE = NodeTypes.MAIL_RESOURCE; 30 31 32 public JavaMailResourceNode(final AppserverMgmtController controller, 33 final String mailResourceName) { 34 super(controller, NODE_TYPE, mailResourceName); 35 } 36 37 42 protected java.util.Map getSheetProperties() { 43 return getAppserverMgmtController(). 44 getJavaMailResourceProperties(getResourceName(), 45 getPropertiesToIgnore()); 46 } 47 48 59 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 60 return getAppserverMgmtController(). 61 setJavaMailResourceProperty(getResourceName(), attrName, value); 62 } 63 64 67 public void remove() { 68 getAppserverMgmtController(). 69 deleteJavaMailResource(getResourceName()); 70 } 71 } 72 | Popular Tags |