Closed
Description
Sam Brannen opened SPR-14057 and commented
Status Quo
@Autowired
currently cannot be declared on a parameter.
Impetus
This feature is needed by #18151 and #18628.
Deliverables
- Allow
@Autowired
to be declared on parameters in order to support dependency injection for individual method or constructor parameters.
Issue Links:
- Introduce autowiring support for individual handler method parameters [SPR-14056] #18628 Introduce autowiring support for individual handler method parameters ("is depended on by")
- Introduce support for JUnit 5 in the TestContext framework [SPR-13575] #18151 Introduce support for JUnit 5 in the TestContext framework ("is depended on by")
- Honor @Autowired(required=false) at parameter level, as an alternative to java.util.Optional [SPR-15268] #19833 Honor
@Autowired
(required=false) at parameter level, as an alternative to java.util.Optional ("is depended on by") - Compose @Autowired with @Qualifier [SPR-14060] #18632 Compose
@Autowired
with@Qualifier
- Allow @Qualifier to be used in composed annotations with attribute overrides [SPR-14058] #18630 Allow
@Qualifier
to be used in composed annotations with attribute overrides
Referenced from: commits a905412
0 votes, 6 watchers