-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug
Milestone
Description
Affects: 5.2.0.M3
When using the Kotlin-based Functional Bean Definition DSL I'm having a definition like this one:
val beans = beans {
bean<CustomerService>()
bean<CustomerHandler>()
// 3 args resp. 1 arg
bean(::router)
bean(::securityWebFilterChain)
// userDetailsService has no args
// bean(::userDetailsService) DOESN'T COMPILE
bean { userDetailsService() }
}
For readability reasons it would be nice to also use a function reference when the bean function has no arguments.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: bugA general bugA general bug