From b52f8d86971e96597b9ef2810842490f380307c0 Mon Sep 17 00:00:00 2001 From: prabathabey Date: Fri, 20 Feb 2015 14:59:51 +0530 Subject: [PATCH] Making LicenseManagement OSGi service use the existing LicenseManagerImpl --- .../mgt/core/license/mgt/LicenseManagementService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/license/mgt/LicenseManagementService.java b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/license/mgt/LicenseManagementService.java index 83e996ec017..d6fe3df5da7 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/license/mgt/LicenseManagementService.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/license/mgt/LicenseManagementService.java @@ -19,17 +19,18 @@ package org.wso2.carbon.device.mgt.core.license.mgt; import org.wso2.carbon.device.mgt.core.config.license.License; +import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder; public class LicenseManagementService implements LicenseManager { @Override public License getLicense(String deviceType, String languageCode) throws LicenseManagementException { - return null; + return DeviceManagementDataHolder.getInstance().getLicenseManager().getLicense(deviceType, languageCode); } @Override public void addLicense(License license) throws LicenseManagementException { - + DeviceManagementDataHolder.getInstance().getLicenseManager().addLicense(license); } }