Package io.quarkus.funqy.runtime
Class FunctionInvoker
- java.lang.Object
-
- io.quarkus.funqy.runtime.FunctionInvoker
-
public class FunctionInvoker extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>bindingContextprotected FunctionConstructor<?>constructorprotected TypeinputTypeprotected booleanisAsyncprotected Methodmethodprotected Stringnameprotected TypeoutputTypeprotected ArrayList<ValueInjector>parameterInjectorsprotected Class<?>targetClass
-
Constructor Summary
Constructors Constructor Description FunctionInvoker(String name, Class<?> targetClass, Method method)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getBindingContext()Allow storage of binding specific objects that are specific to the function.TypegetInputType()MethodgetMethod()StringgetName()TypegetOutputType()Class<?>getTargetClass()booleanhasInput()booleanhasOutput()voidinvoke(FunqyServerRequest request, FunqyServerResponse response)protected booleanisAsync()protected voidsetAsync(boolean async)
-
-
-
Field Detail
-
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
-
-
Method Detail
-
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)
-
-