use of org.apache.commons.configuration2.ImmutableConfiguration in project libresonic by Libresonic.
the class LibresonicPropertySourceConfigurer method initialize.
public void initialize(ConfigurableWebApplicationContext ctx) {
ApacheCommonsConfigurationService configurationService = new ApacheCommonsConfigurationService();
ImmutableConfiguration snapshot = configurationService.getImmutableSnapshot();
PropertySource ps = new CommonsConfigurationPropertySource("libresonic-pre-init-configs", snapshot);
ctx.getEnvironment().getPropertySources().addLast(ps);
addDataSourceProfile(ctx);
}
Aggregations