You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (Closed) (JIRA)" <ji...@apache.org> on 2011/10/17 21:15:10 UTC

[jira] [Closed] (TAP5-1664) @InjectResource annotation should be removed, behavior of @Inject on a field should be changed to consider resources first

     [ https://issues.apache.org/jira/browse/TAP5-1664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAP5-1664.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.3
         Assignee: Howard M. Lewis Ship

Deprecated and marked for removal
                
> @InjectResource annotation should be removed, behavior of @Inject on a field should be changed to consider resources first
> --------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-1664
>                 URL: https://issues.apache.org/jira/browse/TAP5-1664
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3, 5.2
>            Reporter: Howard M. Lewis Ship
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.3
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira