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 for java.util.Optional with @Inject (a la @Autowired's required=false) [SPR-11833] #16452

Closed
spring-projects-issues opened this issue May 29, 2014 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 29, 2014

Juergen Hoeller opened SPR-11833 and commented

Java 8's java.util.Optional is a new common type to mark references as non-required. It'd be nice to support this with @Inject at the injection point level, as an alternative to @Autowired's required=false attribute.


Issue Links:

Referenced from: commits 5cb3f8e, 7d03daf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants