Class FunctionInvoker

java.lang.Object
io.quarkus.funqy.runtime.FunctionInvoker

public class FunctionInvoker extends Object
  • Field Details

    • name

      protected String name
    • targetClass

      protected Class<?> targetClass
    • method

      protected Method method
    • constructor

      protected FunctionConstructor<?> constructor
    • parameterInjectors

      protected ArrayList<ValueInjector> parameterInjectors
    • inputType

      protected Type inputType
    • outputType

      protected Type outputType
    • isAsync

      protected boolean isAsync
    • bindingContext

      protected Map<String,Object> bindingContext
  • Constructor Details

    • FunctionInvoker

      public FunctionInvoker(String name, Class<?> targetClass, Method method)
  • Method Details

    • getBindingContext

      public Map<String,Object> getBindingContext()
      Allow storage of binding specific objects that are specific to the function. i.e. json marshallers
      Returns:
    • hasInput

      public boolean hasInput()
    • getInputType

      public Type getInputType()
    • getOutputType

      public Type getOutputType()
    • isAsync

      protected boolean isAsync()
    • setAsync

      protected void setAsync(boolean async)
    • hasOutput

      public boolean hasOutput()
    • getName

      public String getName()
    • getTargetClass

      public Class<?> getTargetClass()
    • getMethod

      public Method getMethod()
    • invoke

      public void invoke(FunqyServerRequest request, FunqyServerResponse response)