dev@jsr311.java.net

Re: Targets for _at_UriParam, _at_QueryParam, _at_MatrixParam and _at_HeaderParam

From: Ryan McDonough <ryan_at_damnhandy.com>
Date: Wed, 3 Oct 2007 17:49:18 -0400

I do not object, I think it makes perfect sense.

Ryan-

On 10/3/07, Marc Hadley <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>
> CTO Office, Sun Microsystems.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>
>


-- 
Ryan J. McDonough
http://www.damnhandy.com