Package net.officefloor.polyglot.script
Class ScriptFlowParameterFactory
- java.lang.Object
-
- net.officefloor.polyglot.script.ScriptFlowParameterFactory
-
- All Implemented Interfaces:
MethodParameterFactory
public class ScriptFlowParameterFactory extends java.lang.Object implements MethodParameterFactory
- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ScriptFlowParameterFactory(int flowIndex)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createParameter(ManagedFunctionContext<?,?> context)
Creates the parameter from theManagedFunctionContext
.
-
-
-
Constructor Detail
-
ScriptFlowParameterFactory
public ScriptFlowParameterFactory(int flowIndex)
Instantiate.- Parameters:
flowIndex
- Index of theFlow
.
-
-
Method Detail
-
createParameter
public java.lang.Object createParameter(ManagedFunctionContext<?,?> context) throws java.lang.Exception
Description copied from interface:MethodParameterFactory
Creates the parameter from theManagedFunctionContext
.- Specified by:
createParameter
in interfaceMethodParameterFactory
- Parameters:
context
-ManagedFunctionContext
.- Returns:
- Parameter.
- Throws:
java.lang.Exception
- If fails to create the parameter.
-
-