jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: [jax-rs-spec users] ParamConverter questions

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Mon, 17 Dec 2012 09:36:29 -0500

On Dec 17, 2012, at 8:06 AM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:

> Hi
>
> Are ParamConverters supposed to be used first, before the default param conversion algorithm is used or after ?
>
> For example, consider
>
> public class A {
>
> public static A valueOf(String s);
>
> }
>
> Should the runtime attempt to find the registered converter for A before trying to convert using the default algorithm ?

 That was my understanding. However, this should be explained in Section 3.2 :(

> P.S: minor typo in the spec, "ParamsConverter.Lazy" - extra 's'

 Fixed, thanks.

-- Santiago