Making LicenseManagement OSGi service use the existing LicenseManagerImpl

merge-requests/7/head
prabathabey 10 years ago
parent 916760275f
commit b52f8d8697

@ -19,17 +19,18 @@
package org.wso2.carbon.device.mgt.core.license.mgt; 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.config.license.License;
import org.wso2.carbon.device.mgt.core.internal.DeviceManagementDataHolder;
public class LicenseManagementService implements LicenseManager { public class LicenseManagementService implements LicenseManager {
@Override @Override
public License getLicense(String deviceType, String languageCode) throws LicenseManagementException { public License getLicense(String deviceType, String languageCode) throws LicenseManagementException {
return null; return DeviceManagementDataHolder.getInstance().getLicenseManager().getLicense(deviceType, languageCode);
} }
@Override @Override
public void addLicense(License license) throws LicenseManagementException { public void addLicense(License license) throws LicenseManagementException {
DeviceManagementDataHolder.getInstance().getLicenseManager().addLicense(license);
} }
} }

Loading…
Cancel
Save