Skip to content

Commit

Permalink
Merge pull request #13868 from jdaugherty/feature/7.0.0/13867-delegat…
Browse files Browse the repository at this point in the history
…e-resolution
  • Loading branch information
jdaugherty authored Nov 22, 2024
2 parents eb223e9 + 0501666 commit 80588a9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,12 +541,9 @@ public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
BeanBuilder bb = new BeanBuilder(getParentCtx(),springConfig, grailsApplication.getClassLoader());
bb.setBinding(b);
c.setDelegate(bb);
c.setResolveStrategy(Closure.OWNER_FIRST);
bb.invokeMethod("beans", new Object[]{c});
}
}
else {

} else {
if (!pluginBean.isReadableProperty(DO_WITH_SPRING)) {
return;
}
Expand All @@ -559,7 +556,6 @@ public void doWithRuntimeConfiguration(RuntimeSpringConfiguration springConfig)
BeanBuilder bb = new BeanBuilder(getParentCtx(),springConfig, grailsApplication.getClassLoader());
bb.setBinding(b);
c.setDelegate(bb);
c.setResolveStrategy(Closure.DELEGATE_FIRST);
bb.invokeMethod("beans", new Object[]{c});
}

Expand Down

0 comments on commit 80588a9

Please sign in to comment.