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