@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(); }
@LifecycleHandlerType(LifecycleLevel.START_SERVICE) public void start() { notifier.start(); }
@LifecycleHandlerType(LifecycleHandlerType.LifecycleLevel.INIT_SERVICE) public void initialize() { registerForBus(); notifier.initialize(); }