|
|
|
@ -272,6 +272,7 @@ public class DeviceManagementServiceComponent {
|
|
|
|
|
* @param deviceManagementService An instance of DeviceManagementService
|
|
|
|
|
*/
|
|
|
|
|
protected void setDeviceManagementService(DeviceManagementService deviceManagementService) {
|
|
|
|
|
try {
|
|
|
|
|
if (log.isDebugEnabled()) {
|
|
|
|
|
log.debug("Setting Device Management Service Provider: '" +
|
|
|
|
|
deviceManagementService.getType() + "'");
|
|
|
|
@ -282,6 +283,12 @@ public class DeviceManagementServiceComponent {
|
|
|
|
|
listener.registerDeviceManagementService(deviceManagementService);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
log.info("Device Type deployed successfully : " + deviceManagementService.getType() + " for tenant "
|
|
|
|
|
+ deviceManagementService.getProvisioningConfig().getProviderTenantDomain());
|
|
|
|
|
} catch (Throwable e) {
|
|
|
|
|
log.error("Failed to register device management service for device type" + deviceManagementService.getType() +
|
|
|
|
|
" for tenant " + deviceManagementService.getProvisioningConfig().getProviderTenantDomain(), e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|