示例#1
0
 @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");
 }
示例#3
0
 private void register() {
   deviceProviderService = deviceProviderRegistry.register(this);
   linkProviderService = linkProviderRegistry.register(this);
   hostProviderService = hostProviderRegistry.register(this);
 }