Package net.officefloor.plugin.clazz
Class ClassFlowParameterFactory
- java.lang.Object
-
- net.officefloor.plugin.clazz.ClassFlowParameterFactory
-
public class ClassFlowParameterFactory extends java.lang.Object
MethodParameterFactory
to obtain theFlow
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ClassFlowParameterFactory(SourceContext sourceContext, java.lang.Class<?> flowInterface, java.util.Map<java.lang.String,ClassFlowMethodMetaData> methodMetaDatas)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createParameter(FunctionFlowContext<?> context)
Creates the parameter.ClassFlowMethodMetaData[]
getFlowMethodMetaData()
Obtains theClassFlowMethodMetaData
.
-
-
-
Constructor Detail
-
ClassFlowParameterFactory
public ClassFlowParameterFactory(SourceContext sourceContext, java.lang.Class<?> flowInterface, java.util.Map<java.lang.String,ClassFlowMethodMetaData> methodMetaDatas) throws java.lang.Exception
Initiate.- Parameters:
sourceContext
-SourceContext
.flowInterface
-FlowInterface
class.methodMetaDatas
-ClassFlowMethodMetaData
instances by itsMethod
name.- Throws:
java.lang.Exception
- If fails to create theProxy
.
-
-
Method Detail
-
getFlowMethodMetaData
public ClassFlowMethodMetaData[] getFlowMethodMetaData()
Obtains theClassFlowMethodMetaData
.- Returns:
ClassFlowMethodMetaData
.
-
createParameter
public java.lang.Object createParameter(FunctionFlowContext<?> context) throws java.lang.Exception
Creates the parameter.- Parameters:
context
-FunctionFlowContext
.- Returns:
- Parameter.
- Throws:
java.lang.Exception
- If fails to create the parameter.
-
-