Skip to content

Commit aa9ab8e

Browse files
committed
Add support for callable references to BeanRegistrarDsl
BeanDefinitionDsl is allowing to create a bean from a callable reference with its parameters autowired by type, BeanRegistrarDsl should allow that too. For example: class SampleBeanRegistrar : BeanRegistrarDsl({ registerBean<MyRepository>() registerBean(::myRouter) }) fun myRouter(myRepository: MyRepository) = router { ... } Closes gh-34922
1 parent 81ea754 commit aa9ab8e

File tree

2 files changed

+693
-0
lines changed

2 files changed

+693
-0
lines changed

0 commit comments

Comments
 (0)