jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] finer-grain reader/writer matching

From: Bill Burke <bburke_at_redhat.com>
Date: Fri, 04 Mar 2011 09:19:44 -0500

In the message body reader/writer matching algorithm add an additional
sort so that template variables take precedence. For example


@Produces("application/xml")
public class FooWriter implements MessageBodyWriter<Foo> {...}

takes precedence over:

@Produces("application/xml")
public class JaxbWriter implements MessageBodyWriter {...}


Users may want to override the default JAXB (or other) provider for a
specific java type.





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