Class OfficeManagerHirerImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.asset.OfficeManagerHirerImpl
-
- All Implemented Interfaces:
OfficeManagerHirer
public class OfficeManagerHirerImpl extends java.lang.Object implements OfficeManagerHirer
OfficeManagerHirer
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeManagerHirerImpl(MonitorClockImpl monitorClock, long monitorInterval, FunctionLoop functionLoop)
Instantiate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssetManager[]
hireAssetManagers(AssetManagerHirer[] assetManagerHirers, ProcessState managingProcess)
Hires all theAssetManager
instances.OfficeManager
hireOfficeManager(ProcessState managingProcess)
Hires a newOfficeManager
.void
setAssetManagerHirers(AssetManagerHirer[] assetManagerHirers)
Specifies theAssetManagerHirer
instances.
-
-
-
Constructor Detail
-
OfficeManagerHirerImpl
public OfficeManagerHirerImpl(MonitorClockImpl monitorClock, long monitorInterval, FunctionLoop functionLoop)
Instantiate.- Parameters:
monitorClock
-MonitorClock
.monitorInterval
- Interval to monitor theAsset
instances.functionLoop
-FunctionLoop
.
-
-
Method Detail
-
hireAssetManagers
public static AssetManager[] hireAssetManagers(AssetManagerHirer[] assetManagerHirers, ProcessState managingProcess)
Hires all theAssetManager
instances.- Parameters:
assetManagerHirers
-AssetManagerHirer
instances.managingProcess
- ManagingProcessState
.- Returns:
AssetManager
.
-
setAssetManagerHirers
public void setAssetManagerHirers(AssetManagerHirer[] assetManagerHirers)
Specifies theAssetManagerHirer
instances.- Parameters:
assetManagerHirers
-AssetManagerHirer
instances.
-
hireOfficeManager
public OfficeManager hireOfficeManager(ProcessState managingProcess)
Description copied from interface:OfficeManagerHirer
Hires a newOfficeManager
.- Specified by:
hireOfficeManager
in interfaceOfficeManagerHirer
- Parameters:
managingProcess
-ProcessState
to manage theOfficeManager
.- Returns:
- New
OfficeManager
.
-
-