Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1664

@InjectResource annotation should be removed, behavior of @Inject on a field should be changed to consider resources first

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.3, 5.2
    • 5.3
    • tapestry-ioc
    • None

    Description

      The @InjectResource annotation is confusing and, ultimately, unnecessary. For the rare case where there's a service of type Messages or such, you can always change your constructor to take an ObjectLocator and look up the Messages service that way.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: