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 autowiring by constructor in Kotlin bean DSL [SPR-16014] #20563

Closed
spring-projects-issues opened this issue Sep 26, 2017 · 0 comments
Closed
Assignees
Labels
in: core type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Sep 26, 2017

Sébastien Deleuze opened SPR-16014 and commented

After the blog post presenting the Kotlin bean definition DSL, we had a lot of feedbacks and improvement requests about Routes(ref(), ref()) syntax, and even if ref() is valid, such declaration frequently used for constructor injection deserve a better syntax.

By enabling constructor autowiring by default (which make sense in Kotlin) and allowing easily to customize the autowireMode we can significantly improve syntax and readability of Kotlin bean definition DSL.


Affects: 5.0 RC4

Reference URL: https://spring.io/blog/2017/08/01/spring-framework-5-kotlin-apis-the-functional-way#functional-bean-definitions-with-spring-rsquo-s-new-kotlin-dsl

Referenced from: commits fbb428f, 23497a7

@spring-projects-issues spring-projects-issues added type: enhancement in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.0 GA milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants