users@jax-rs-spec.java.net

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

From: Santiago Pericasgeertsen <santiago.pericasgeertsen_at_oracle.com>
Date: Tue, 17 Jan 2017 10:57:52 -0500

> On Jan 13, 2017, at 6:19 PM, Ondrej Mihályi <ondrej.mihalyi_at_gmail.com> wrote:
>
> Actually, I like the unwrap method more than the current proposal. It makes it explicit what I want to get when I write code. The current proposal is similar, but requires me to remember the name of the invoker on top of the rx interface I want to get.
>
> Compare:
>
> Current proposal
> CompletionStage<List<String>> cs = client.request()
> .rx(CompletionStageRxInvokerProvider.class)
> .get(new GenericType<List<String>>() {
> });
 Perhaps we should explore turning this into a "real provider”. I.e., something that is registered in the runtime and looked up by the JAX-RS implementation. In which case, the param to rx() could be CompletionStage.class instead. This would be more inline with, say, ParamConverters.

— Santiago