users@jsr311.java.net

Re: MessageBodyWriter and annotations

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 30 Jun 2008 15:55:33 -0400

Marc Hadley wrote:
> On Jun 30, 2008, at 3:44 PM, Bill Burke wrote:
>
>> IMO, the same is true with Readers.
>>
>> @PUT
>> public void put(@Compression(0.2) Image image) {...}
>>
>> @Compression should be passed in as the Reader's Annotation[]
>>
> That is the case for Readers. Sounds like I'm in the minority on the
> expectation for Writers - the main issue is there's no way to annotate a
> return type so you'd always get the method designator (@GET or
> whatever), an @Path etc.
>

I'm not understanding the problem you are talking about here...



-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com