1 19 package org.netbeans.modules.j2ee.sun.ide.runtime.nodes; 20 21 import org.netbeans.modules.j2ee.sun.bridge.apis.AppserverMgmtLeafNode; 22 import org.netbeans.modules.j2ee.sun.util.NodeTypes; 23 import org.netbeans.modules.j2ee.sun.ide.controllers.EJBModuleController; 24 25 27 public class StatefulEjbNode extends AppserverMgmtLeafNode { 28 29 private static final String NODE_TYPE = NodeTypes.STATEFUL_SESSION_BEAN; 30 private EJBModuleController controller; 31 private String ejbName; 32 33 40 46 47 54 public StatefulEjbNode(EJBModuleController controller, String ejbName) { 55 super(NODE_TYPE); 56 this.ejbName = ejbName; 57 this.controller = controller; 58 setDisplayName(ejbName); 59 } 60 61 public StatefulEjbNode(String name) { 62 super(NODE_TYPE); 63 this.ejbName = name; 64 setDisplayName(name); 65 } 66 67 72 protected java.util.Map getSheetProperties() { 73 return controller.getStatefulEJBProperties(ejbName, 74 getPropertiesToIgnore()); 75 } 76 77 78 89 public javax.management.Attribute setSheetProperty(String attrName, Object value) { 90 return controller.setStatefulEJBProperties(getName(), attrName, value); 91 } 92 93 } 94 | Popular Tags |