/** Stops the Event Bus */ void stopEventBus(@Observes StopBus event) { CommandBusOnClient bus = commandBusInst.get(); bus.stopBus(); }
void startEventBus(@Observes StartBus event) throws Exception { CommandBusOnClient bus = new CommandBusOnClient(); injector.get().inject(bus); commandBusInst.set(bus); bus.startBus(event); }