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
ManagedObjectReadyCheck
implementation.- 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 FunctionState
getLatchFunction()
Obtains theFunctionState
to use in anAssetLatch
if not ready.ManagedFunctionContainer
getManagedFunctionContainer()
Obtains theManagedFunctionContainer
to access dependentManagedObject
instances.boolean
isReady()
Returns whether theManagedObject
is ready.FunctionState
setNotReady()
Flags that aManagedObject
or one of its dependencyManagedObject
instances is not ready.
-
-
-
Constructor Detail
-
ManagedObjectReadyCheckImpl
public ManagedObjectReadyCheckImpl(FunctionState latchFunction, ManagedFunctionContainer managedFunction)
Instantiate.- Parameters:
latchFunction
-FunctionState
for theAssetLatch
if not ready.managedFunction
-ManagedFunctionContainer
requiring the check.
-
-
Method Detail
-
isReady
public boolean isReady()
Returns whether theManagedObject
is ready.- Returns:
true
if theManagedObject
is ready.
-
getLatchFunction
public FunctionState getLatchFunction()
Description copied from interface:ManagedObjectReadyCheck
Obtains theFunctionState
to use in anAssetLatch
if not ready.- Specified by:
getLatchFunction
in interfaceManagedObjectReadyCheck
- Returns:
FunctionState
to use in anAssetLatch
if not ready.
-
getManagedFunctionContainer
public ManagedFunctionContainer getManagedFunctionContainer()
Description copied from interface:ManagedObjectReadyCheck
Obtains theManagedFunctionContainer
to access dependentManagedObject
instances.- Specified by:
getManagedFunctionContainer
in interfaceManagedObjectReadyCheck
- Returns:
ManagedFunctionContainer
to access dependentManagedObject
instances.
-
setNotReady
public FunctionState setNotReady()
Description copied from interface:ManagedObjectReadyCheck
Flags that aManagedObject
or one of its dependencyManagedObject
instances is not ready.- Specified by:
setNotReady
in interfaceManagedObjectReadyCheck
- Returns:
FunctionState
to flag theManagedObject
as not ready.
-
-