Hi Sergey,
I think ever the ones of the resource method -> @AnnotationA. Perhaps it
is not clear enough.
Marc, the javadoc refers to the creation from a field? I think the only
way to return objects are the resource methods.
best regards
Stephan
Sergey Beryozkin schrieb:
> 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