- Dictionary<String, Object> props = new Hashtable<>();
- props.put(Constants.SERVICE_PID, NodeConstants.NODE_USER_ADMIN_PID);
- bc.registerService(ManagedServiceFactory.class, userAdmin, props);
-
- // UI
- bc.registerService(ApplicationConfiguration.class, new MaintenanceUi(),
- LangUtils.init(KernelConstants.CONTEXT_NAME_PROP, "system"));
- bc.registerService(ApplicationConfiguration.class, new UserUi(),
- LangUtils.init(KernelConstants.CONTEXT_NAME_PROP, "user"));
+ bc.registerService(ManagedServiceFactory.class, userAdmin,
+ LangUtils.dico(Constants.SERVICE_PID, NodeConstants.NODE_USER_ADMIN_PID));