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-issuemaster opened this issue Sep 26, 2017 · 0 comments
Closed

Support autowiring by constructor in Kotlin bean DSL [SPR-16014] #20563

spring-issuemaster opened this issue Sep 26, 2017 · 0 comments
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.