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
ManagedFunctionimplementation of aJob.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static intPARAMETER_INDEXScope index of theManagedObjectIndexindicating the parameter rather than the object of theManagedObject.static ManagedObjectIndexPARAMETER_MANAGED_OBJECT_INDEXManagedObjectIndexfor 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 voidexecute(ManagedFunctionLogicContext context)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
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:
- Constant Field Values
-
PARAMETER_MANAGED_OBJECT_INDEX
public static final ManagedObjectIndex PARAMETER_MANAGED_OBJECT_INDEX
ManagedObjectIndexfor 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) throws java.lang.Throwable
Description copied from interface:ManagedFunctionLogicExecutes theManagedFunctionLogic.- Specified by:
executein interfaceManagedFunctionLogic- Parameters:
context-ManagedFunctionLogicContext.- Throws:
java.lang.Throwable- Failure of logic.
-
-