@Deactivate public void deactivate() { providerRegistry.unregister(this); providerService = null; cfgService.unregisterConfigFactory(factory); cfgService.removeListener(cfgLister); log.info("Stopped"); }
@Activate public void activate() { appId = coreService.registerApplication(APP_NAME); providerService = providerRegistry.register(this); cfgService.registerConfigFactory(factory); cfgService.addListener(cfgLister); connectDevices(); log.info("Started"); }
@Activate public void activate() { providerService = providerRegistry.register(this); appId = coreService.registerApplication(APP_NAME); cfgService.registerConfigFactory(factory); cfgService.addListener(cfgLister); controller.addDeviceListener(innerNodeListener); executor.execute(NetconfDeviceProvider.this::connectDevices); log.info("Started"); }
private void unregister() { deviceProviderRegistry.unregister(this); linkProviderRegistry.unregister(this); hostProviderRegistry.unregister(this); }
private void register() { deviceProviderService = deviceProviderRegistry.register(this); linkProviderService = linkProviderRegistry.register(this); hostProviderService = hostProviderRegistry.register(this); }