Example #1
0
 private void tryToDeregisterReloadListener() {
   IAlarmService service = ServiceLocator.getService(IAlarmService.class);
   if (service != null) {
     service.deregister(_configurationUpdateListener);
   }
 }
 public CommandResult execute(CommandParameters parameters) {
   InterconnectionServerApplication.SHUTDOWN = false;
   ServiceLocator.getService(IInterconnectionServer.class).stopIcServer();
   return CommandResult.createSuccessResult();
 }
Example #3
0
 // requires the existence of the reload action when run
 private void createAndRegisterReloadCommand() {
   _configurationUpdateListener = new MyAlarmListener();
   ServiceLocator.getService(IAlarmService.class).register(_configurationUpdateListener);
 }