Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-3262

Remove the dependency on io.reactive on the client

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • 7.0.0.Alpha3
    • None
    • Client
    • None

      The resteasy-client and resteasy-client-api both have dependencies on io.reactivestreams:reactive-streams. These should not be dependencies on either module and should be in the org.jboss.resteasy:resteasy-reactive module. This will likely break backwards compatibility, however I really think this needs to be cleaned up.

      The org.jboss.resteasy.client.jaxrs.internal.ClientInvocation has the following method as well:

      public Optional<ReactiveInvocation> reactive() {
         if (client.httpEngine() instanceof ReactiveClientHttpEngine) {
            return Optional.of(new ReactiveInvocation((ReactiveClientHttpEngine)client.httpEngine()));
         }
         return Optional.empty();
      }
      

      However, ReactiveInvocation is package-private which is also strange. This whole part needs to be examined.

      As part of this we may want to introduce JDK reactive API's. This might be better done in a separate commit. It will depend on how this can and will be broken.

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: