mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 23:43:06 +00:00
Create a temporary version of the ConfigurationPlaceholderConfigurer to overcome bu in 2.10
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
package org.dspace.util;
|
||||
|
||||
import org.apache.commons.configuration2.Configuration;
|
||||
import org.apache.commons.configuration2.spring.ConfigurationPropertySource;
|
||||
import org.dspace.servicemanager.config.DSpaceConfigurationPropertySource;
|
||||
import org.dspace.services.ConfigurationService;
|
||||
import org.dspace.services.factory.DSpaceServicesFactory;
|
||||
import org.springframework.context.ApplicationContextInitializer;
|
||||
@@ -38,8 +38,8 @@ public class DSpaceConfigurationInitializer
|
||||
Configuration configuration = configurationService.getConfiguration();
|
||||
|
||||
// Create an Apache Commons Configuration Property Source from our configuration
|
||||
ConfigurationPropertySource apacheCommonsConfigPropertySource =
|
||||
new ConfigurationPropertySource(configuration.getClass().getName(), configuration);
|
||||
DSpaceConfigurationPropertySource apacheCommonsConfigPropertySource =
|
||||
new DSpaceConfigurationPropertySource(configuration.getClass().getName(), configuration);
|
||||
|
||||
// Prepend it to the Environment's list of PropertySources
|
||||
// NOTE: This is added *first* in the list so that settings in DSpace's
|
||||
|
Reference in New Issue
Block a user