Interface RpcSingleServer<S>

Type Parameters:
S - The node data service interface, i.e., the methods offered by the node model to the node dialog/view to retrieve data.
All Superinterfaces:
RpcServer
All Known Implementing Classes:
JsonRpcSingleServer

public interface RpcSingleServer<S> extends RpcServer
Convenience specialization of RpcServer for the case where there is only node data service interface, which the user then doesn't have to specify on every call.
Since:
4.3
Author:
Martin Horn, KNIME GmbH, Konstanz, Germany, Carl Witt, KNIME AG, Zurich, Switzerland
  • Method Details

    • getHandler

      S getHandler()
      Returns:
      an implementation of the service interface.
    • getHandler

      default <S2> S2 getHandler(Class<S2> serviceInterface)
      Description copied from interface: RpcServer
      Returns the service implementation associated to the name serviceInterface.getSimpleName()
      Specified by:
      getHandler in interface RpcServer
      Type Parameters:
      S2 - the node data service interface (i.e., the methods offered by the node model to the node dialog/view to retrieve data)
      Parameters:
      serviceInterface - an interface the handler implements
      Returns:
      an implementation of the service interface
    • getHandler

      default <S2> S2 getHandler(String serviceName)
      Description copied from interface: RpcServer
      Specified by:
      getHandler in interface RpcServer
      Type Parameters:
      S2 - the node data service interface (i.e., the methods offered by the node model to the node dialog/view to retrieve data)
      Parameters:
      serviceName - the name of the interface that identifies the implementation of the node data service interface to return
      Returns:
      a service implementation