public void onApplicationEvent(ApplicationEvent event) { if (ctx == null) { return; } boolean doIt = false; ApplicationContext ac = ctx; while (ac != null && !doIt) { if (event.getSource() == ac) { doIt = true; break; } ac = ac.getParent(); } if (doIt) { if (event instanceof ContextRefreshedEvent) { if (getState() != BusState.RUNNING) { initialize(); } } else if (event instanceof ContextClosedEvent && getState() == BusState.RUNNING) { // The bus could be create by using SpringBusFactory.createBus("/cxf.xml"); // Just to make sure the shutdown is called rightly shutdown(); } } }
public void onApplicationEvent(ApplicationEvent event) { if (ctx == null) { return; } boolean doIt = false; ApplicationContext ac = ctx; while (ac != null && !doIt) { if (event.getSource() == ac) { doIt = true; break; } ac = ac.getParent(); } if (doIt) { if (event instanceof ContextRefreshedEvent) { if (getState() != BusState.RUNNING) { initialize(); } } else if (event instanceof ContextClosedEvent && getState() == BusState.RUNNING) { // The bus could be create by using SpringBusFactory.createBus("/cxf.xml"); // Just to make sure the shutdown is called rightly shutdown(); } } }
public void onApplicationEvent(ApplicationEvent event) { if (ctx == null) { return; } boolean doIt = false; ApplicationContext ac = ctx; while (ac != null && !doIt) { if (event.getSource() == ac) { doIt = true; break; } ac = ac.getParent(); } if (doIt) { if (event instanceof ContextRefreshedEvent) { if (getState() != BusState.RUNNING) { initialize(); } } else if (event instanceof ContextClosedEvent && getState() == BusState.RUNNING) { // The bus could be create by using SpringBusFactory.createBus("/cxf.xml"); // Just to make sure the shutdown is called rightly shutdown(); } } }
public void onApplicationEvent(ApplicationEvent event) { if (ctx == null) { return; } boolean doIt = false; ApplicationContext ac = ctx; while (ac != null && !doIt) { if (event.getSource() == ac) { doIt = true; break; } ac = ac.getParent(); } if (doIt) { if (event instanceof ContextRefreshedEvent) { if (getState() != BusState.RUNNING) { initialize(); } } else if (event instanceof ContextClosedEvent && getState() == BusState.RUNNING) { // The bus could be create by using SpringBusFactory.createBus("/cxf.xml"); // Just to make sure the shutdown is called rightly shutdown(); } } }
setExtension(new SpringBeanLocator(applicationContext, this), ConfiguredBeanLocator.class); if (getState() != BusState.RUNNING) { initialize();
setExtension(new SpringBeanLocator(applicationContext, this), ConfiguredBeanLocator.class); if (getState() != BusState.RUNNING) { initialize();
setExtension(new SpringBeanLocator(applicationContext, this), ConfiguredBeanLocator.class); if (getState() != BusState.RUNNING) { initialize();
setExtension(new SpringBeanLocator(applicationContext, this), ConfiguredBeanLocator.class); if (getState() != BusState.RUNNING) { initialize();