Class ManagedObjectReadyCheckImpl
java.lang.Object
net.officefloor.frame.impl.execute.managedobject.ManagedObjectReadyCheckImpl
- All Implemented Interfaces:
ManagedObjectReadyCheck
ManagedObjectReadyCheck implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionManagedObjectReadyCheckImpl(FunctionState latchFunction, ManagedFunctionContainer managedFunction) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionObtains theFunctionStateto use in anAssetLatchif not ready.Obtains theManagedFunctionContainerto access dependentManagedObjectinstances.booleanisReady()Returns whether theManagedObjectis ready.Flags that aManagedObjector one of its dependencyManagedObjectinstances is not ready.
-
Constructor Details
-
ManagedObjectReadyCheckImpl
public ManagedObjectReadyCheckImpl(FunctionState latchFunction, ManagedFunctionContainer managedFunction) Instantiate.- Parameters:
latchFunction-FunctionStatefor theAssetLatchif not ready.managedFunction-ManagedFunctionContainerrequiring the check.
-
-
Method Details
-
isReady
public boolean isReady()Returns whether theManagedObjectis ready.- Returns:
trueif theManagedObjectis ready.
-
getLatchFunction
Description copied from interface:ManagedObjectReadyCheckObtains theFunctionStateto use in anAssetLatchif not ready.- Specified by:
getLatchFunctionin interfaceManagedObjectReadyCheck- Returns:
FunctionStateto use in anAssetLatchif not ready.
-
getManagedFunctionContainer
Description copied from interface:ManagedObjectReadyCheckObtains theManagedFunctionContainerto access dependentManagedObjectinstances.- Specified by:
getManagedFunctionContainerin interfaceManagedObjectReadyCheck- Returns:
ManagedFunctionContainerto access dependentManagedObjectinstances.
-
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.
-