Marc Hadley wrote:
> On Jun 30, 2008, at 3:55 PM, Bill Burke wrote:
>>
>> I'm not understanding the problem you are talking about here...
>>
> @GET @Path("foo")
> public SomeType getSomething() {...}
>
> If we pass annotations on the method (getSomething) rather that the type
> (SomeType), the MessageBodyWriter will get an array [GET, Path]. Its not
> a huge deal, just there's no way to annotate the return type separately
> from the method so the JX-RS annotations on the method will be included.
>
Not a big deal, IMO. You might actually have different annotations on
the same method that are consumed by different MessageBodyWRiters
depending on the response content-type.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com