Skip to content

Commit

Permalink
GH-2728 Change the order of the refresh for multicontext
Browse files Browse the repository at this point in the history
  • Loading branch information
olegz committed May 27, 2024
1 parent 13f94d2 commit 7f0021b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,10 @@ public void onApplicationEvent(ApplicationEvent event) {
}

if (refresh) {
binderProducingContext.refresh();
if (!useApplicationContextAsParent || "integration".equals(binderType.getDefaultName())) {
this.propagateSharedBeans(binderProducingContext, (GenericApplicationContext) this.context);
}
binderProducingContext.refresh();
}

return binderProducingContext;
Expand Down

0 comments on commit 7f0021b

Please sign in to comment.