예제 #1
0
 private void registerForBus() {
   try {
     busService.getBus().register(listener);
   } catch (final EventBusException e) {
     log.error("Problem encountered registering OverdueListener on the Event Bus", e);
   }
 }
예제 #2
0
 @LifecycleHandlerType(LifecycleLevel.STOP_SERVICE)
 public void stop() {
   try {
     busService.getBus().unregister(listener);
   } catch (final EventBusException e) {
     log.error("Problem encountered registering OverdueListener on the Event Bus", e);
   }
   notifier.stop();
 }