users@jsr311.java.net

Re: MessageBodyWriter and annotations

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 30 Jun 2008 16:13:54 -0400

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.

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.