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:
Spencer Gibb
2020-03-10 14:57:57 -04:00
committed by GitHub
parent 38fdd36a6d
commit e8952fc66a
3 changed files with 131 additions and 0 deletions

View File

@@ -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