File tree Expand file tree Collapse file tree 5 files changed +9
-74
lines changed
dspace-api/src/test/java/org/dspace/util
dspace-server-webapp/src/main/java/org/dspace/app/rest/utils
dspace-services/src/main/java/org/dspace/servicemanager/config Expand file tree Collapse file tree 5 files changed +9
-74
lines changed Original file line number Diff line number Diff line change 88package org .dspace .util ;
99
1010import org .apache .commons .configuration2 .Configuration ;
11- import org .dspace . servicemanager . config . DSpaceConfigurationPropertySource ;
11+ import org .apache . commons . configuration2 . spring . ConfigurationPropertySource ;
1212import org .dspace .services .ConfigurationService ;
1313import org .dspace .services .factory .DSpaceServicesFactory ;
1414import org .springframework .context .ApplicationContextInitializer ;
@@ -38,8 +38,8 @@ public void initialize(final ConfigurableApplicationContext applicationContext)
3838 Configuration configuration = configurationService .getConfiguration ();
3939
4040 // Create an Apache Commons Configuration Property Source from our configuration
41- DSpaceConfigurationPropertySource apacheCommonsConfigPropertySource =
42- new DSpaceConfigurationPropertySource (configuration .getClass ().getName (), configuration );
41+ ConfigurationPropertySource apacheCommonsConfigPropertySource =
42+ new ConfigurationPropertySource (configuration .getClass ().getName (), configuration );
4343
4444 // Prepend it to the Environment's list of PropertySources
4545 // NOTE: This is added *first* in the list so that settings in DSpace's
Original file line number Diff line number Diff line change 88package org .dspace .app .rest .utils ;
99
1010import org .apache .commons .configuration2 .Configuration ;
11- import org .dspace . servicemanager . config . DSpaceConfigurationPropertySource ;
11+ import org .apache . commons . configuration2 . spring . ConfigurationPropertySource ;
1212import org .dspace .services .ConfigurationService ;
1313import org .dspace .services .factory .DSpaceServicesFactory ;
1414import org .springframework .context .ApplicationContextInitializer ;
@@ -34,8 +34,8 @@ public void initialize(final ConfigurableApplicationContext applicationContext)
3434 Configuration configuration = configurationService .getConfiguration ();
3535
3636 // Create an Apache Commons Configuration Property Source from our configuration
37- DSpaceConfigurationPropertySource apacheCommonsConfigPropertySource =
38- new DSpaceConfigurationPropertySource (configuration .getClass ().getName (), configuration );
37+ ConfigurationPropertySource apacheCommonsConfigPropertySource =
38+ new ConfigurationPropertySource (configuration .getClass ().getName (), configuration );
3939
4040 // Prepend it to the Environment's list of PropertySources
4141 // NOTE: This is added *first* in the list so that settings in DSpace's ConfigurationService *override*
Original file line number Diff line number Diff line change 88package org .dspace .servicemanager .config ;
99
1010import org .apache .commons .configuration2 .Configuration ;
11+ import org .apache .commons .configuration2 .spring .ConfigurationPropertySource ;
1112import org .springframework .context .support .PropertySourcesPlaceholderConfigurer ;
1213import org .springframework .core .env .MutablePropertySources ;
1314
2627public class DSpaceConfigurationPlaceholderConfigurer extends PropertySourcesPlaceholderConfigurer {
2728
2829 public DSpaceConfigurationPlaceholderConfigurer (Configuration configuration ) {
29- DSpaceConfigurationPropertySource apacheCommonsConfigPropertySource =
30- new DSpaceConfigurationPropertySource (configuration .getClass ().getName (), configuration );
30+ ConfigurationPropertySource apacheCommonsConfigPropertySource =
31+ new ConfigurationPropertySource (configuration .getClass ().getName (), configuration );
3132 MutablePropertySources propertySources = new MutablePropertySources ();
3233 propertySources .addLast (apacheCommonsConfigPropertySource );
3334 setPropertySources (propertySources );
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 451451 <!-- Add some default DSpace exclusions not covered by <useDefaultExcludes>
452452 Individual Maven projects may choose to override these defaults. -->
453453 <excludes >
454- <!-- temporary copy of a modified apache commons-configuration2 class, see https://issues.apache.org/jira/browse/CONFIGURATION-846 -->
455- <exclude >**/src/main/java/org/dspace/servicemanager/config/DSpaceConfigurationPropertySource.java</exclude >
456454 <exclude >**/src/test/resources/**</exclude >
457455 <exclude >**/src/test/data/**</exclude >
458456 <exclude >**/src/main/license/**</exclude >
You can’t perform that action at this time.
0 commit comments