users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: MessageBodyReader and concrete implementations

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Wed, 2 Jul 2014 14:25:41 +0100

Hi Bill
On 02/07/14 14:22, Bill Burke wrote:
> Pretty simple, here's our impl. Don't understand why you're making it
> more complicated.
>
>
> public boolean isReadable(Class<?> type,
> Type genericType,
> Annotation[] annotations, MediaType
> mediaType)
> {
> return DataSource.class.isAssignableFrom(type);
> }
>

sure, try adding FileDataSource into a method signature and see what
happens in your readFrom :-)

Sergey

>
> On 7/2/2014 6:27 AM, Sergey Beryozkin wrote:
>> Hi
>>
>> I've opened [1] to have the specification to clarify what default MBRs
>> should do when they see concrete implementations of interfaces.
>>
>> I thought it would make sense to start a discussion here too, so
>> comments are welcome
>>
>> Cheers, Sergey
>>
>> [1] https://java.net/jira/browse/JAX_RS_SPEC-470
>