[ 
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/26/20 6:14 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 *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

 

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

Reply via email to