Updates ContextRefresher to maintain property source ordering. (#705)
Updates the targetName so that property sources maintain ordering from the bootstrap environment where they were refreshed. Fixes gh-704
This commit is contained in:
@@ -129,6 +129,8 @@ public class ContextRefresher {
|
||||
else {
|
||||
if (targetName != null) {
|
||||
target.addAfter(targetName, source);
|
||||
// update targetName to preserve ordering
|
||||
targetName = name;
|
||||
}
|
||||
else {
|
||||
// targetName was null so we are at the start of the list
|
||||
|
||||
Reference in New Issue
Block a user