Interface IServiceParameterMapper<T>


public interface IServiceParameterMapper<T>
Used as part of a service plan, i.e. a plan that has a required service method as body. Interface that is used for mapping from a goal to the service parameters and back.
  • Method Details

    • createServiceParameters

      Object[] createServiceParameters(T obj, Method m, RPlan plan)
      Create service parameters.
      Parameters:
      obj - The pojo or rgoal.
      m - The service method called.
      plan - The service call plan (possibly has parameter definitions).
      Returns:
      The parameter array for the service call.
    • handleServiceResult

      void handleServiceResult(T obj, Method m, Object result, RPlan plan)
      Create service result.
      Parameters:
      obj - The goal.
      m - The method.
      result - The service call result.