parent
7fcbc869a6
commit
02f2d94f57
|
|
@ -341,10 +341,10 @@ public class SpringFactoriesLoader {
|
||||||
UrlResource resource = new UrlResource(urls.nextElement());
|
UrlResource resource = new UrlResource(urls.nextElement());
|
||||||
Properties properties = PropertiesLoaderUtils.loadProperties(resource);
|
Properties properties = PropertiesLoaderUtils.loadProperties(resource);
|
||||||
properties.forEach((name, value) -> {
|
properties.forEach((name, value) -> {
|
||||||
String[] factoryImplementationNames= StringUtils.commaDelimitedListToStringArray((String) value);
|
String[] factoryImplementationNames = StringUtils.commaDelimitedListToStringArray((String) value);
|
||||||
List<String> implementations = result.computeIfAbsent(((String) name).trim(), key -> new ArrayList<>(factoryImplementationNames.length));
|
List<String> implementations = result.computeIfAbsent(((String) name).trim(),
|
||||||
Arrays.stream(factoryImplementationNames)
|
key -> new ArrayList<>(factoryImplementationNames.length));
|
||||||
.map(String::trim).forEach(implementations::add);
|
Arrays.stream(factoryImplementationNames).map(String::trim).forEach(implementations::add);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
result.replaceAll(SpringFactoriesLoader::toDistinctUnmodifiableList);
|
result.replaceAll(SpringFactoriesLoader::toDistinctUnmodifiableList);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue