Class AbstractStub<T>

  • Type Parameters:
    T - The type of the web service callback instance to which calls of the Java API are forwarded.
    Direct Known Subclasses:
    OrgPolicyScriptHandlerWebServiceStub

    public class AbstractStub<T>
    extends Object
    An abstract stub provides a specific Java API interface for a web service stub. It is used for callbacks called by the BPM platform and forwarded via the corresponding communication service/web service to the registered callback. Calls are therefore in the other direction than the normal web service calls. That is, the Java API is converted to the ILM and then to the appropriate web service backend.

    Stubs are usually created when registering a callback. The corresponding callback object is a specific stub instance of the corresponding web service framework, e. g. REST or SOAP.

    • Constructor Detail

      • AbstractStub

        protected AbstractStub​(T callback,
                               LogService logService)
        Parameters:
        callback - The wrapped web service callback instance.
        logService - The log service for creating class-specific loggers
    • Method Detail

      • getCallback

        protected T getCallback()
        Gets the wrapped web service callback instance.
        Returns:
        The wrapped web service callback instance.
      • getLogger

        protected Logger getLogger()
        Gets the logger to be used by the Java API stub.
        Returns:
        The logger to be used by the Java API stub.