Package net.officefloor.frame.api.manage
Interface FunctionManager
- All Known Implementing Classes:
FunctionManagerImpl
public interface FunctionManager
Interface to manage a particular
ManagedFunction.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionObject[]Obtains the annotations for thisManagedFunction.Class<?>Obtains the parameter type for invoking thisManagedFunction.invokeProcess(Object parameter, FlowCallback callback)
-
Method Details
-
getAnnotations
Object[] getAnnotations()Obtains the annotations for thisManagedFunction.- Returns:
- Annotations for this
ManagedFunction.
-
getParameterType
Class<?> getParameterType()Obtains the parameter type for invoking thisManagedFunction.- Returns:
- Parameter type for invoking the
ManagedFunction. Will benullif no parameter to theManagedFunction.
-
invokeProcess
ProcessManager invokeProcess(Object parameter, FlowCallback callback) throws InvalidParameterTypeException - Parameters:
parameter- Parameter for theManagedFunction.callback- OptionalFlowCallback. May benull.- Returns:
ProcessManagerto manage theProcessState.- Throws:
InvalidParameterTypeException- Should the parameter be of incorrect type for theManagedFunction.
-