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