Skip to content

Commit 7e671ab

Browse files
committed
Polish MyBeanRegistrar Kotlin code sample
1 parent 618bce3 commit 7e671ab

File tree

1 file changed

+2
-2
lines changed
  • framework-docs/src/main/kotlin/org/springframework/docs/core/beans/java/beansjavaprogrammaticregistration

1 file changed

+2
-2
lines changed

framework-docs/src/main/kotlin/org/springframework/docs/core/beans/java/beansjavaprogrammaticregistration/MyBeanRegistrar.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ class MyBeanRegistrar : BeanRegistrarDsl({
2727
prototype = true,
2828
lazyInit = true,
2929
description = "Custom description") {
30-
Bar(bean<Foo>())
30+
Bar(bean<Foo>()) // Also possible with Bar(bean())
3131
}
3232
profile("baz") {
3333
registerBean { Baz("Hello World!") }
3434
}
3535
registerBean<MyRepository>()
3636
registerBean {
37-
myRouter(bean<MyRepository>()) // Also possible with just myRouter(bean())
37+
myRouter(bean<MyRepository>()) // Also possible with myRouter(bean())
3838
}
3939
})
4040

0 commit comments

Comments
 (0)