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

[jsr339-experts] Re: _at_Marshaller

From: Adam Bien <abien_at_adam-bien.com>
Date: Mon, 25 Apr 2011 09:38:27 +0200

You mean instead of using the @XmlRootElement etc. JAXB tags?

On 22.04.2011, at 18:41, Bill Burke wrote:

> A user just suggested this feature. Allow a @Marshaller and @Unmarshaller annotation on a POJO that identifies a reader or writer that should be used:
>
> i.e.
> @Unmarshaller(MyPojoReader.class)
> public class MyPojo {}
>
>
> ...
>
> @Path
> public class MyService {
>
> @GET
> MyPojo getPojo() {...}
> }
>
> Thought it might be interesting to consider.
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com

Consultant, Author, Speaker, Java Champion
 
 Weblog: blog.adam-bien.com
 press: press.adam-bien.com
 eMail: abien_at_adam-bien.com
 twitter: twitter.com/adambien
 Mobile: 0049(0)170 280 3144

 Author: 7 (Java SE/EE, SOA) Books, about 100 articles