Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6975

Add convenience method to combine a ServiceDependency with another

XMLWordPrintable

      Add a convenience method to combine a ServiceDependency with another.
      This is analogous to CompletionStage.thenCombine(...).
      e.g.
      ServiceDependency<Foo> foo = ...;
      ServiceDependency<Bar> bar = ...;
      BiFunction<Foo, Bar, Qux> mapper = ...;
      ServiceDependency<Qux> qux = foo.combine(bar, mapper);

      The resulting service dependency will register a dependency on both foo and bar, while returning qux.

              pferraro@redhat.com Paul Ferraro
              pferraro@redhat.com Paul Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: