Class ManagedObjectReadyCheckImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.managedobject.ManagedObjectReadyCheckImpl
-
- All Implemented Interfaces:
ManagedObjectReadyCheck
public class ManagedObjectReadyCheckImpl extends java.lang.Object implements ManagedObjectReadyCheck
ManagedObjectReadyCheckimplementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectReadyCheckImpl(FunctionState latchFunction, ManagedFunctionContainer managedFunction)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FunctionStategetLatchFunction()Obtains theFunctionStateto use in anAssetLatchif not ready.ManagedFunctionContainergetManagedFunctionContainer()Obtains theManagedFunctionContainerto access dependentManagedObjectinstances.booleanisReady()Returns whether theManagedObjectis ready.FunctionStatesetNotReady()Flags that aManagedObjector one of its dependencyManagedObjectinstances is not ready.
-
-
-
Constructor Detail
-
ManagedObjectReadyCheckImpl
public ManagedObjectReadyCheckImpl(FunctionState latchFunction, ManagedFunctionContainer managedFunction)
Instantiate.- Parameters:
latchFunction-FunctionStatefor theAssetLatchif not ready.managedFunction-ManagedFunctionContainerrequiring the check.
-
-
Method Detail
-
isReady
public boolean isReady()
Returns whether theManagedObjectis ready.- Returns:
trueif theManagedObjectis ready.
-
getLatchFunction
public FunctionState getLatchFunction()
Description copied from interface:ManagedObjectReadyCheckObtains theFunctionStateto use in anAssetLatchif not ready.- Specified by:
getLatchFunctionin interfaceManagedObjectReadyCheck- Returns:
FunctionStateto use in anAssetLatchif not ready.
-
getManagedFunctionContainer
public ManagedFunctionContainer getManagedFunctionContainer()
Description copied from interface:ManagedObjectReadyCheckObtains theManagedFunctionContainerto access dependentManagedObjectinstances.- Specified by:
getManagedFunctionContainerin interfaceManagedObjectReadyCheck- Returns:
ManagedFunctionContainerto access dependentManagedObjectinstances.
-
setNotReady
public FunctionState setNotReady()
Description copied from interface:ManagedObjectReadyCheckFlags that aManagedObjector one of its dependencyManagedObjectinstances is not ready.- Specified by:
setNotReadyin interfaceManagedObjectReadyCheck- Returns:
FunctionStateto flag theManagedObjectas not ready.
-
-