users@jax-rs-spec.java.net

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

From: Ondrej Mihályi <ondrej.mihalyi_at_gmail.com>
Date: Tue, 17 Jan 2017 17:41:54 +0100

+1



2017-01-17 16:57 GMT+01:00 Santiago Pericasgeertsen <
santiago.pericasgeertsen_at_oracle.com>:

>
> 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
>
>