Class FunctionManagerImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.office.FunctionManagerImpl
-
- All Implemented Interfaces:
FunctionManager
public class FunctionManagerImpl extends java.lang.Object implements FunctionManager
FunctionManager
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FunctionManagerImpl(ManagedFunctionMetaData<?,?> functionMetaData, OfficeMetaData officeMetaData)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object[]
getAnnotations()
Obtains the annotations for thisManagedFunction
.java.lang.Class<?>
getParameterType()
Obtains the parameter type for invoking thisManagedFunction
.ProcessManager
invokeProcess(java.lang.Object parameter, FlowCallback callback)
-
-
-
Constructor Detail
-
FunctionManagerImpl
public FunctionManagerImpl(ManagedFunctionMetaData<?,?> functionMetaData, OfficeMetaData officeMetaData)
Initiate.- Parameters:
functionMetaData
-ManagedFunctionMetaData
.officeMetaData
-OfficeMetaData
.
-
-
Method Detail
-
getAnnotations
public java.lang.Object[] getAnnotations()
Description copied from interface:FunctionManager
Obtains the annotations for thisManagedFunction
.- Specified by:
getAnnotations
in interfaceFunctionManager
- Returns:
- Annotations for this
ManagedFunction
.
-
getParameterType
public java.lang.Class<?> getParameterType()
Description copied from interface:FunctionManager
Obtains the parameter type for invoking thisManagedFunction
.- Specified by:
getParameterType
in interfaceFunctionManager
- Returns:
- Parameter type for invoking the
ManagedFunction
. Will benull
if no parameter to theManagedFunction
.
-
invokeProcess
public ProcessManager invokeProcess(java.lang.Object parameter, FlowCallback callback) throws InvalidParameterTypeException
Description copied from interface:FunctionManager
- Specified by:
invokeProcess
in interfaceFunctionManager
- Parameters:
parameter
- Parameter for theManagedFunction
.callback
- OptionalFlowCallback
. May benull
.- Returns:
ProcessManager
to manage theProcessState
.- Throws:
InvalidParameterTypeException
- Should the parameter be of incorrect type for theManagedFunction
.
-
-