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

[jsr339-experts] Re: lets remove Client.Builder, and ClientFactoryBuilder please

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Tue, 13 Dec 2011 10:24:28 +0000

On 12/12/11 13:47, Bill Burke wrote:
> Maybe I should give more detail (again):
>
> * We don't need a set of interfaces the application developer will never
> see

Same applies to interfaces which users will see but won't use

Cheers, Sergey

> * The interfaces are redudant. All you really need is to specify a
> javax.ws.rs.ext.ClientFactory with the class name of your impl's factory
> within it.
> * If you want to be able to support extensions (i.e. an extended
> interface to ClientFactory or Client), then it should be left up to the
> provider how they want to support it. For example, I don't want Resteasy
> to be forced to use your interfaces, especially when a typecast or even
> a constructor invocation would be good enough for this scenario.
>
> On 12/12/11 8:35 AM, Bill Burke wrote:
>> I've already complained about this before and gave in-depth reasons why
>> we don't need these interfaces, but can we please remove Client.Builder
>> and ClientFactoryBuilder? They are not needed by either the jaxrs
>> implementation or the application developer. All logic can be contained
>> within ClientFactory or Java EE app server.
>>
>> I have yet to hear a good reason from you guys why we need this extra
>> bloat.
>>
>> Bill
>>
>