users@jsr311.java.net

MessageBodyWriter and annotations

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Mon, 30 Jun 2008 16:21:38 +0100

Hi

Consider this method :

@AnnotationA
public Response get() {
     return Response.ok().entity(new Foo()).build();
}

@AnnotationB
public class Foo {}

Which annotation should be passed to a given MessageBodyWriter instance capable of serializing Foo ?
Is it @AnnotationB ?

Thanks, Sergey

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland