@ -39,12 +42,16 @@ public class MutablePropertySources implements PropertySources {
@@ -39,12 +42,16 @@ public class MutablePropertySources implements PropertySources {
staticfinalStringNON_EXISTENT_PROPERTY_SOURCE_MESSAGE="PropertySource named [%s] does not exist";
staticfinalStringILLEGAL_RELATIVE_ADDITION_MESSAGE="PropertySource named [%s] cannot be added relative to itself";
@ -52,11 +59,21 @@ public class MutablePropertySources implements PropertySources {
@@ -52,11 +59,21 @@ public class MutablePropertySources implements PropertySources {
@ -73,6 +90,8 @@ public class MutablePropertySources implements PropertySources {
@@ -73,6 +90,8 @@ public class MutablePropertySources implements PropertySources {
logger.debug(String.format("Adding [%s] PropertySource with highest search precedence",
propertySource.getName()));
removeIfPresent(propertySource);
this.propertySourceList.addFirst(propertySource);
}
@ -81,6 +100,8 @@ public class MutablePropertySources implements PropertySources {
@@ -81,6 +100,8 @@ public class MutablePropertySources implements PropertySources {
logger.debug(String.format("Adding [%s] PropertySource with lowest search precedence",
propertySource.getName()));
removeIfPresent(propertySource);
this.propertySourceList.addLast(propertySource);
}
@ -90,6 +111,8 @@ public class MutablePropertySources implements PropertySources {
@@ -90,6 +111,8 @@ public class MutablePropertySources implements PropertySources {
@ -101,6 +124,8 @@ public class MutablePropertySources implements PropertySources {
@@ -101,6 +124,8 @@ public class MutablePropertySources implements PropertySources {
@ -119,6 +144,7 @@ public class MutablePropertySources implements PropertySources {
@@ -119,6 +144,7 @@ public class MutablePropertySources implements PropertySources {
@ -134,6 +160,8 @@ public class MutablePropertySources implements PropertySources {
@@ -134,6 +160,8 @@ public class MutablePropertySources implements PropertySources {
@ -145,6 +173,15 @@ public class MutablePropertySources implements PropertySources {
@@ -145,6 +173,15 @@ public class MutablePropertySources implements PropertySources {