You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Redko (Jira)" <ji...@apache.org> on 2020/01/25 21:52:00 UTC

[jira] [Comment Edited] (CXF-7814) wadl2java: support the JAX-RS 2.1 reactive results

    [ https://issues.apache.org/jira/browse/CXF-7814?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17023653#comment-17023653 ] 

Andriy Redko edited comment on CXF-7814 at 1/25/20 9:51 PM:
------------------------------------------------------------

Implementation details:

  - new WADL generator command line option has been introduced: *-rx <library>* (the *async* is already present and accepts the list of methods to pass asynchronous response context into).

  - the *<library>*pinpoints the reactive extensions library to use, the only supported option at the moment is *java8*, which basically means *CompletionStage* / *CompletableFuture*

Limitations:

 - the *void* / *one-way* methods are not generated with *CompletionStage* / *CompletableFuture* (we could probably introduce the command line option in case it is needed)

 - only *CompletionStage* / *CompletableFuture* are supported at the moment

 


was (Author: reta):
Implementation details:

  - new WADL generator command line option has been introduced: *-rx <library>*

  - the *<library>*pinpoints the reactive extensions library to use, the only supported option at the moment is *java8*, which basically means *CompletionStage* / *CompletableFuture*

Limitations:

 - the *void* / *one-way* methods are not generated with *CompletionStage* / *CompletableFuture* (we could probably introduce the command line option in case it is needed)

 - only *CompletionStage* / *CompletableFuture* are supported at the moment

 

> wadl2java: support the JAX-RS 2.1 reactive results
> --------------------------------------------------
>
>                 Key: CXF-7814
>                 URL: https://issues.apache.org/jira/browse/CXF-7814
>             Project: CXF
>          Issue Type: New Feature
>          Components: Tooling
>    Affects Versions: 3.2.5, 3.3.5
>            Reporter: Andrei Ivanov
>            Assignee: Andriy Redko
>            Priority: Major
>             Fix For: 3.4.0, 3.3.6, 3.2.13
>
>
> As far as I understand, JAX-RS 2.1 added support for reactive results, but I don't see how to generate Java interfaces from a WADL file with these.
> I assume that some parameters similar to {{-async}} should be added to indicate which methods should return one of the supported reactive results, like {{CompletionStage}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)