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

Re: [jax-rs-spec users] JAX-RS 2.1 - work schedule

From: Santiago Pericasgeertsen <santiago.pericasgeertsen_at_oracle.com>
Date: Thu, 19 Jan 2017 10:54:59 -0500

Hi Pavel,

 Just catching up with this issue. I guess the two levels of indirection has led us into a generic wall :)


> Client rxClient = client.register(CompletionStageRxInvokerProvider.class);
>
> CompletionStage<UserPojo> cs =
> rxClient.target("http://foo.bar" <http://foo.bar/>)
> .request()
> .rx(CompletionStage.class)
> .get(UserPojo.class);
 So what if we reduce indirection and write:

   .rx(CompletionStageRxInvoker.class)

 as before, still keeping the provider for it? Less ideal of course.

— Santiago