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
Juergen Hoeller opened SPR-11833 and commented
Java 8's
java.util.Optionalis a new common type to mark references as non-required. It'd be nice to support this with@Injectat the injection point level, as an alternative to@Autowired'srequired=falseattribute.Issue Links:
@RequestParam@Nullableannotations as indicators for optional injection points@Beanmethod parameters using java.util.OptionalReferenced from: commits 5cb3f8e, 7d03daf