public class FunctionRuntimeContext extends Object implements RuntimeContext
| Constructor and Description |
|---|
FunctionRuntimeContext(MethodWrapper method,
Map<String,String> config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInputCoercion(InputCoercion ic) |
void |
addInvoker(FunctionInvoker invoker,
FunctionInvoker.Phase phase) |
void |
addOutputCoercion(OutputCoercion oc) |
String |
getAppID() |
String |
getAppName() |
<T> Optional<T> |
getAttribute(String att,
Class<T> type) |
Map<String,String> |
getConfiguration() |
Optional<String> |
getConfigurationByKey(String key) |
String |
getFunctionID() |
String |
getFunctionName() |
List<InputCoercion> |
getInputCoercions(MethodWrapper targetMethod,
int param) |
Optional<Object> |
getInvokeInstance() |
MethodWrapper |
getMethod() |
MethodWrapper |
getMethodWrapper() |
List<OutputCoercion> |
getOutputCoercions(Method method) |
FunctionInvocationContext |
newInvocationContext(InputEvent inputEvent) |
void |
setAttribute(String att,
Object val) |
OutputEvent |
tryInvoke(InputEvent evt,
InvocationContext entryPoint) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetInvokerpublic FunctionRuntimeContext(MethodWrapper method, Map<String,String> config)
public String getAppID()
getAppID in interface RuntimeContextpublic String getFunctionID()
getFunctionID in interface RuntimeContextpublic String getAppName()
getAppName in interface RuntimeContextpublic String getFunctionName()
getFunctionName in interface RuntimeContextpublic Optional<Object> getInvokeInstance()
getInvokeInstance in interface RuntimeContextpublic Optional<String> getConfigurationByKey(String key)
getConfigurationByKey in interface RuntimeContextpublic Map<String,String> getConfiguration()
getConfiguration in interface RuntimeContextpublic <T> Optional<T> getAttribute(String att, Class<T> type)
getAttribute in interface RuntimeContextpublic void setAttribute(String att, Object val)
setAttribute in interface RuntimeContextpublic void addInputCoercion(InputCoercion ic)
addInputCoercion in interface RuntimeContextpublic List<InputCoercion> getInputCoercions(MethodWrapper targetMethod, int param)
getInputCoercions in interface RuntimeContextpublic void addOutputCoercion(OutputCoercion oc)
addOutputCoercion in interface RuntimeContextpublic void addInvoker(FunctionInvoker invoker, FunctionInvoker.Phase phase)
addInvoker in interface RuntimeContextpublic MethodWrapper getMethod()
getMethod in interface RuntimeContextpublic FunctionInvocationContext newInvocationContext(InputEvent inputEvent)
public OutputEvent tryInvoke(InputEvent evt, InvocationContext entryPoint)
public List<OutputCoercion> getOutputCoercions(Method method)
getOutputCoercions in interface RuntimeContextpublic MethodWrapper getMethodWrapper()
Copyright © 2023. All rights reserved.