|
|
|
@ -514,8 +514,9 @@ public class ConfigurationClassProcessingTests {
@@ -514,8 +514,9 @@ public class ConfigurationClassProcessingTests {
|
|
|
|
|
void register(GenericApplicationContext ctx) { |
|
|
|
|
ctx.registerBean("spouse", TestBean.class, |
|
|
|
|
() -> new TestBean("functional")); |
|
|
|
|
Supplier<TestBean> testBeanSupplier = () -> new TestBean(ctx.getBean("spouse", TestBean.class)); |
|
|
|
|
ctx.registerBean(TestBean.class, |
|
|
|
|
() -> new TestBean(ctx.getBean("spouse", TestBean.class)), |
|
|
|
|
testBeanSupplier, |
|
|
|
|
bd -> bd.setPrimary(true)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|