mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Refactoring
This commit is contained in:
parent
a1806eb87e
commit
b32c59b840
@ -184,8 +184,7 @@ public class APIUtil {
|
|||||||
synchronized (APIUtil.class) {
|
synchronized (APIUtil.class) {
|
||||||
if (categoryManager == null) {
|
if (categoryManager == null) {
|
||||||
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
PrivilegedCarbonContext ctx = PrivilegedCarbonContext.getThreadLocalCarbonContext();
|
||||||
categoryManager = (CategoryManager) ctx
|
categoryManager = (CategoryManager) ctx.getOSGiService(CategoryManager.class, null);
|
||||||
.getOSGiService(CategoryManager.class, null);
|
|
||||||
if (categoryManager == null) {
|
if (categoryManager == null) {
|
||||||
String msg = "Category Manager service has not initialized.";
|
String msg = "Category Manager service has not initialized.";
|
||||||
log.error(msg);
|
log.error(msg);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user