users@jax-rs-spec.java.net

[jax-rs-spec users] Re: [PLEASE REVIEW] JAX-RS Client Reactive API -- updated

From: Pavel Bucek <pavel.bucek_at_oracle.com>
Date: Fri, 20 Jan 2017 16:36:50 +0100

Hi Santiago,

On 20/01/2017 15:42, Santiago Pericasgeertsen wrote:
> Hi Pavel,
>
>> On Jan 20, 2017, at 9:12 AM, Pavel Bucek <pavel.bucek_at_oracle.com
>> <mailto:pavel.bucek_at_oracle.com>> wrote:
>>
>> Dear experts,
>>
>> thanks for your feedback!
>>
>> Last suggestion by Santiago (doing lookup by the RxInvoker subclass)
>> is implementable and I believe it is the best one we do have.
>>
>> Code example (extensibility support):
>>
>> Client rxClient =client.register(CompletionStageRxInvokerProvider.class, RxInvokerProvider.class);
>
> What is the RxInvokerProvider.class above?

RxInvokerProvider is from JAX-RS API; "client".register method is
declared as:

public C register(Class<?> componentClass, Class<?>... contracts);


which translated to "register CompletionStageRxInvokerProvider as
RxInvokerProvider". It is not required to use this explicit way,
client.register(CompletionStageRxInvokerProvider.class) also works.

Hope it clears that up.

Regards,
Pavel