Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-10253

Allow multiple implementations of KieServerController through the ServiceLoader

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • 7.75.0.Final
    • 7.74.1.Final
    • KieServer
    • None

      Currently the implementation of KieServerController getController() in KieServerImpl uses the default, or the first class loaded through the ServiceLoader. This makes it difficult to override, especially as the WebSocket implementation is usually present.

      This change allows multiple implementations to exist, and when they do, they are checked to see if they are supported, and are of a higher priority. The default is not instantiated automatically as this is always available to the ServiceLoader.

      This change is designed to mirror the KieServicesClientProvider. However, the change could not be applied to the KieServerController interface as that is also used elsewhere in the kie-server (for example org.kie.server.controller.websocket.WebSocketKieServerControllerImpl)

              kverlaen@redhat.com Kris Verlaenen
              timhhamoni Tim Hurman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: