Tapestry 5
  1. Tapestry 5
  2. TAP5-231

Unify injection; allow @Inject annotation on fields of service implementations

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.15
    • Fix Version/s: 5.0.16
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      This has come up again and again, especially in recent training. Although I'm very strongly in favor of constructor injection (and the use of final fields to store dependencies), being allowed to inject into a field, even if it requires the use of reflection, would be a real boon.

        Activity

        Howard M. Lewis Ship created issue -
        Hide
        Massimo Lusetti added a comment -

        I'm curious to know which are the situation that have lead you to consider this enhancement. I think this could be of interest to the community as well.

        Show
        Massimo Lusetti added a comment - I'm curious to know which are the situation that have lead you to consider this enhancement. I think this could be of interest to the community as well.
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Hide
        Howard M. Lewis Ship added a comment -

        Came out nicely.

        I've gotten lots of pushback from the last two training engagements that people are unhappy that there's so much difference between injection into components (via fields) and injection into services (via constructors). That's also been on the list a bit.

        Show
        Howard M. Lewis Ship added a comment - Came out nicely. I've gotten lots of pushback from the last two training engagements that people are unhappy that there's so much difference between injection into components (via fields) and injection into services (via constructors). That's also been on the list a bit.
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.0.16 [ 12313427 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        1d 1h 39m 1 Howard M. Lewis Ship 26/Sep/08 09:23

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development