1 18 package org.apache.activemq.xbean; 19 20 import org.apache.activemq.broker.BrokerService; 21 import org.springframework.beans.factory.DisposableBean; 22 import org.springframework.beans.factory.InitializingBean; 23 24 38 public class XBeanBrokerService extends BrokerService implements InitializingBean, DisposableBean { 39 40 private boolean start = true; 41 42 public XBeanBrokerService() { 43 } 44 45 public void afterPropertiesSet() throws Exception { 46 if (start) { 47 start(); 48 } 49 } 50 51 public void destroy() throws Exception { 52 stop(); 53 } 54 55 public boolean isStart() { 56 return start; 57 } 58 59 64 public void setStart(boolean start) { 65 this.start = start; 66 } 67 } 68 | Popular Tags |