java.lang.Object
net.officefloor.frame.impl.execute.managedfunction.ManagedFunctionLogicImpl<O,F>
- All Implemented Interfaces:
ManagedFunctionLogic
public class ManagedFunctionLogicImpl<O extends Enum<O>,F extends Enum<F>>
extends Object
implements ManagedFunctionLogic
ManagedFunction implementation of a Job.- Author:
- Daniel Sagenschneider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intScope index of theManagedObjectIndexindicating the parameter rather than the object of theManagedObject.static final ManagedObjectIndexManagedObjectIndexfor the parameter. -
Constructor Summary
ConstructorsConstructorDescriptionManagedFunctionLogicImpl(ManagedFunctionMetaData<O, F> functionMetaData, Object parameter) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(ManagedFunctionLogicContext context, ThreadState threadState) Executes theManagedFunctionLogic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.frame.internal.structure.ManagedFunctionLogic
isRequireThreadStateSafety
-
Field Details
-
PARAMETER_INDEX
public static final int PARAMETER_INDEXScope index of the
ManagedObjectIndexindicating the parameter rather than the object of theManagedObject.As
ManagedObjectIndexare indexes into arrays, the negative value is safe to use as a parameter index.- See Also:
-
PARAMETER_MANAGED_OBJECT_INDEX
ManagedObjectIndexfor the parameter.
-
-
Constructor Details
-
ManagedFunctionLogicImpl
Initiate.- Parameters:
functionMetaData-ManagedFunctionMetaData.parameter- Parameter for theManagedFunction.
-
-
Method Details
-
execute
Description copied from interface:ManagedFunctionLogicExecutes theManagedFunctionLogic.- Specified by:
executein interfaceManagedFunctionLogic- Parameters:
context-ManagedFunctionLogicContext.threadState-ThreadStatefor theManagedFunctionLogic.- Throws:
Throwable- Failure of logic.
-