/** * Normalizes the types to the ones allowed for configurations. * * @param configuration the configuration that needs to be normalzed * @return normalized configuration */ public static Map<String, Object> normalizeTypes(Map<String, Object> configuration) { Map<String, Object> convertedConfiguration = new HashMap<>(configuration.size()); for (Entry<String, Object> parameter : configuration.entrySet()) { String name = parameter.getKey(); Object value = parameter.getValue(); if (!isOSGiConfigParameter(name)) { convertedConfiguration.put(name, normalizeType(value, null)); } } return convertedConfiguration; }
String name = parameter.getKey(); Object value = parameter.getValue(); if (!isOSGiConfigParameter(name)) { ConfigDescriptionParameter configDescriptionParameter = configParams.get(name); convertedConfiguration.put(name, normalizeType(value, configDescriptionParameter));