Skip to content

Support Gradle-style API for Kotlin bean registration [SPR-15126] #19693

@spring-projects-issues

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-15126 and commented

Based on a feedback from Ilya Ryzhenkov (Kotlin team), it is possible to support this kind of Gradle-style Kotlin API for bean registration:

val context = GenericApplicationContext {
	registerBean<Foo>()
	registerBean { Bar(it.getBean<Foo>()) }
}

Referenced from: commits 8f14e29, f8461d8

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions