in src/main/java/org/apache/commons/configuration2/spring/ConfigurationPropertiesFactoryBean.java [92:112]
public void afterPropertiesSet() throws Exception {
if (compositeConfiguration == null && ArrayUtils.isEmpty(configurations) && ArrayUtils.isEmpty(locations)) {
throw new IllegalArgumentException("no configuration object or location specified");
}
if (compositeConfiguration == null) {
compositeConfiguration = new CompositeConfiguration();
}
compositeConfiguration.setThrowExceptionOnMissing(throwExceptionOnMissing);
if (configurations != null) {
Stream.of(configurations).forEach(compositeConfiguration::addConfiguration);
}
if (locations != null) {
for (final Resource location : locations) {
compositeConfiguration.addConfiguration(new Configurations().properties(location.getURL()));
}
}
}