dev@jsr311.java.net

Re: Targets for _at_UriParam, _at_QueryParam, _at_MatrixParam and _at_HeaderParam

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 04 Oct 2007 11:52:29 +0200

Ryan McDonough wrote:
> I do not object, I think it makes perfect sense.
>

+1

Paul.

> Ryan-
>
> On 10/3/07, *Marc Hadley* <Marc.Hadley_at_sun.com
> <mailto:Marc.Hadley_at_sun.com>> wrote:
>
> Currently the annotations @UriParam, @QueryParam, @MatrixParam and
> @HeaderParam can all be applied to constructor parameters, method
> parameters, class fields and class methods. I'd like to suggest that
> we remove the ability to attach these annotations to class fields and
> methods and only allow their use on constructor and method
> parameters. Here's why:
>
> - Field and method injection normally only happens at object creation
> time (after the constructor is called). For a singleton it makes no
> sense to inject a per-request value like those provided by these
> annotations.
> - For a per-request resource lifecycle we already support constructor
> parameters so field and method injection don't add any real value.
>
> Any objections ?
> Marc.
>
> ---
> Marc Hadley <marc.hadley at sun.com <http://sun.com>>
> CTO Office, Sun Microsystems.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> <mailto:dev-unsubscribe_at_jsr311.dev.java.net>
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
> <mailto:dev-help_at_jsr311.dev.java.net>
>
>
>
>
> --
> Ryan J. McDonough
> http://www.damnhandy.com

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109