Пример #1
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();
 }
Пример #2
0
 @LifecycleHandlerType(LifecycleLevel.START_SERVICE)
 public void start() {
   notifier.start();
 }
Пример #3
0
 @LifecycleHandlerType(LifecycleHandlerType.LifecycleLevel.INIT_SERVICE)
 public void initialize() {
   registerForBus();
   notifier.initialize();
 }