Class ManagedFunctionLogicImpl<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.impl.execute.managedfunction.ManagedFunctionLogicImpl<O,F>
-
- All Implemented Interfaces:
ManagedFunctionLogic
public class ManagedFunctionLogicImpl<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> extends java.lang.Object implements ManagedFunctionLogic
ManagedFunction
implementation of aJob
.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static int
PARAMETER_INDEX
Scope index of theManagedObjectIndex
indicating the parameter rather than the object of theManagedObject
.static ManagedObjectIndex
PARAMETER_MANAGED_OBJECT_INDEX
ManagedObjectIndex
for the parameter.
-
Constructor Summary
Constructors Constructor Description ManagedFunctionLogicImpl(ManagedFunctionMetaData<O,F> functionMetaData, java.lang.Object parameter)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(ManagedFunctionLogicContext context, ThreadState threadState)
Executes theManagedFunctionLogic
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.frame.internal.structure.ManagedFunctionLogic
isRequireThreadStateSafety
-
-
-
-
Field Detail
-
PARAMETER_INDEX
public static final int PARAMETER_INDEX
Scope index of the
ManagedObjectIndex
indicating the parameter rather than the object of theManagedObject
.As
ManagedObjectIndex
are indexes into arrays, the negative value is safe to use as a parameter index.- See Also:
- Constant Field Values
-
PARAMETER_MANAGED_OBJECT_INDEX
public static final ManagedObjectIndex PARAMETER_MANAGED_OBJECT_INDEX
ManagedObjectIndex
for the parameter.
-
-
Constructor Detail
-
ManagedFunctionLogicImpl
public ManagedFunctionLogicImpl(ManagedFunctionMetaData<O,F> functionMetaData, java.lang.Object parameter)
Initiate.- Parameters:
functionMetaData
-ManagedFunctionMetaData
.parameter
- Parameter for theManagedFunction
.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionLogicContext context, ThreadState threadState) throws java.lang.Throwable
Description copied from interface:ManagedFunctionLogic
Executes theManagedFunctionLogic
.- Specified by:
execute
in interfaceManagedFunctionLogic
- Parameters:
context
-ManagedFunctionLogicContext
.threadState
-ThreadState
for theManagedFunctionLogic
.- Throws:
java.lang.Throwable
- Failure of logic.
-
-