Sry i wasn't clear. It would just be an alternative way to bind a
MessageBodyReader and/or MessageBodyWriter to a specific class.
Unmarshaller/Marshaller are probably bad names for the annotation.
On 4/25/11 3:38 AM, Adam Bien wrote:
> 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
>
>
>
>
>
>
>
>
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com