1 22 package org.jboss.naming; 23 24 import org.jboss.system.ServiceMBeanSupport; 25 26 32 public class JNDIBindingServiceMgr extends ServiceMBeanSupport 33 implements JNDIBindingServiceMgrMBean 34 { 35 JNDIBindingService service; 36 37 public JNDIBindingServiceMgr() 38 { 39 service = new JNDIBindingService(); 40 } 41 42 public JNDIBindings getBindingsConfig() 43 { 44 return service.getBindings(); 45 } 46 public void setBindingsConfig(JNDIBindings bindings) 47 { 48 service.setBindings(bindings); 49 } 50 51 protected void startService() throws Exception 52 { 53 service.addBindings(); 54 } 55 56 protected void stopService() throws Exception 57 { 58 service.removeBindings(); 59 } 60 } 61 | Popular Tags |