public class MethodFunctionInvoker extends Object implements FunctionInvoker
This handles the binding and invocation of function calls via java methods.
FunctionInvoker.Phase| Constructor and Description |
|---|
MethodFunctionInvoker() |
| Modifier and Type | Method and Description |
|---|---|
protected Object[] |
coerceParameters(InvocationContext ctx,
MethodWrapper targetMethod,
InputEvent evt) |
protected Optional<OutputEvent> |
coerceReturnValue(InvocationContext ctx,
MethodWrapper method,
Object rawResult) |
Optional<OutputEvent> |
tryInvoke(InvocationContext ctx,
InputEvent evt)
Invoke the function wrapped by this loader
|
public Optional<OutputEvent> tryInvoke(InvocationContext ctx, InputEvent evt) throws InternalFunctionInvocationException
tryInvoke in interface FunctionInvokerevt - The function eventInternalFunctionInvocationException - if the invocation failsprotected Object[] coerceParameters(InvocationContext ctx, MethodWrapper targetMethod, InputEvent evt)
protected Optional<OutputEvent> coerceReturnValue(InvocationContext ctx, MethodWrapper method, Object rawResult)
Copyright © 2023. All rights reserved.