|
From: Michael B. <mic...@gm...> - 2008-11-13 17:57:24
|
On Thu, Nov 13, 2008 at 6:51 PM, Bill Burke <bb...@re...> wrote:
> I looked at the code and it seems that the @DefaultValue is run through the
> converter. Are you not seeing that behavior?
Yes i do (actually, i added a test case for that)
What i meant is not specifying the default as string, but as an object.
@DefaultValue(new Pojo("default"))
otherwise you would need to convert the value yourself
@DefaultValue(new PojoStingConverter().toString(new Pojo("default")))
Michael Brackx
>
> Michael Brackx wrote:
>>
>> Hi,
>>
>> Now that we have StringConverter, what about object defaults?
>> Unfortunately @DefaultValue only accepts a String, so that would mean
>> another resteasy extension.
>>
>> Michael Brackx
>>
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> _______________________________________________
>> Resteasy-developers mailing list
>> Res...@li...
>> https://lists.sourceforge.net/lists/listinfo/resteasy-developers
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>
|