|
|
|
|
@ -27,14 +27,14 @@ class MyBeanRegistrar : BeanRegistrarDsl({
@@ -27,14 +27,14 @@ class MyBeanRegistrar : BeanRegistrarDsl({
|
|
|
|
|
prototype = true, |
|
|
|
|
lazyInit = true, |
|
|
|
|
description = "Custom description") { |
|
|
|
|
Bar(bean<Foo>()) |
|
|
|
|
Bar(bean<Foo>()) // Also possible with Bar(bean()) |
|
|
|
|
} |
|
|
|
|
profile("baz") { |
|
|
|
|
registerBean { Baz("Hello World!") } |
|
|
|
|
} |
|
|
|
|
registerBean<MyRepository>() |
|
|
|
|
registerBean { |
|
|
|
|
myRouter(bean<MyRepository>()) // Also possible with just myRouter(bean()) |
|
|
|
|
myRouter(bean<MyRepository>()) // Also possible with myRouter(bean()) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|