Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Jan 10, 2017 · 0 comments
Closed
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jan 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants