dev@jsr311.java.net

Re: JSR311: MessageBodyWorkers

From: Bill Burke <bburke_at_redhat.com>
Date: Tue, 25 Mar 2008 10:41:32 -0400

+1. I found the same thing as Paul.

Marc Hadley wrote:
> Currently we have methods to get a List of readers or writers for a
> particular Java type and media type. Paul pointed out that providing a
> List isn't particularly useful since there's no additional information
> to drive the choice between members of the list and that generally most
> folks will just take the first entry. Therefore we propose to change the
> method signatures from:
>
> public abstract <T> List<MessageBodyReader<T>>
> getMessageBodyReaders(MediaType mediaType, Class<T> type, Type
> genericType, Annotation annotations[]);
> public abstract <T> List<MessageBodyWriter<T>>
> getMessageBodyWriters(MediaType mediaType, Class<T> type, Type
> genericType, Annotation annotations[]);
>
> to
>
> public abstract <T> MessageBodyReader<T> getMessageBodyReader(MediaType
> mediaType, Class<T> type, Type genericType, Annotation annotations[]);
> public abstract <T> MessageBodyWriter<T> getMessageBodyWriter(MediaType
> mediaType, Class<T> type, Type genericType, Annotation annotations[]);
>
> Any objections ?
> Marc.
>
> ---
> Marc Hadley <marc.hadley at sun.com>
> CTO Office, Sun Microsystems.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: dev-help_at_jsr311.dev.java.net
>

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