users@jersey.java.net

Re: Get rid of requirement for no-arg constructor

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 10 Dec 2007 10:28:18 +0100

Hi Richard,

Thanks for the links, we have another bug related to this [1].

We need to review this whole area...

Paul.

[1] https://jersey.dev.java.net/issues/show_bug.cgi?id=26

Richard Wallace wrote:
> Paul Sandoz wrote:
>> Richard Wallace wrote:
>>>> Such a parameter can be String, or a class that supports a
>>>> constructor with a String parameter or a static method of the
>>>> signature "T valueOf(String)". Plus such information can only be
>>>> obtained in a per-request scope from the HTTP request.
>>>>
>>>
>>> Maybe this is out of left field, but have you had a look at how
>>> WebWork/Struts2 handles conversion? It's really slick, allowing you
>>> to specify different Converters, etc. so you don't have to rely on
>>> static methods or naming conventions or anything like that. I think
>>> doing something like this within Jersey or even spec'ing this as a
>>> requirement in jsr311 would be awesome.
>>>
>>
>> Could you send a pointer and/or provide an example?
>>
>> See also this issue [1].
>>
>> Paul.
>>
>> [1] https://jersey.dev.java.net/issues/show_bug.cgi?id=15
>>
> Sorry. Here you go.
> http://struts.apache.org/2.0.11/docs/type-conversion.html
>
>
> The validation is top notch too.
>
> http://struts.apache.org/2.0.11/docs/validation.html
>
> Interceptors would be really useful too.
>
> http://struts.apache.org/2.0.11/docs/interceptors.html
>
>
> Rich
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>

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