Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-14057

Allow @Autowired to be declared on parameters

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 4.3 RC1
    • Component/s: Core:DI
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Status Quo

      @Autowired currently cannot be declared on a parameter.

      Impetus

      This feature is needed by SPR-13575 and SPR-14056.

      Deliverables

      • Allow @Autowired to be declared on parameters in order to support dependency injection for individual method or constructor parameters.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              sbrannen Sam Brannen
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 30 weeks, 3 days ago