Package net.officefloor.frame.api.manage
Interface Office
-
- All Known Implementing Classes:
OfficeImpl
public interface Office
Office within theOfficeFloor
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StateManager
createStateManager()
Creates aStateManager
.FunctionManager
getFunctionManager(java.lang.String functionName)
Obtains theFunctionManager
for the namedManagedFunction
.java.lang.String[]
getFunctionNames()
Obtains the names of theFunctionManager
instances within thisOffice
.java.lang.String[]
getObjectNames()
Obtains the names of the boundManagedObject
instances within thisOffice
.
-
-
-
Method Detail
-
getFunctionNames
java.lang.String[] getFunctionNames()
Obtains the names of the
FunctionManager
instances within thisOffice
.This allows to dynamically manage this
Office
.- Returns:
- Names of the
FunctionManager
instances within thisOffice
.
-
getFunctionManager
FunctionManager getFunctionManager(java.lang.String functionName) throws UnknownFunctionException
Obtains theFunctionManager
for the namedManagedFunction
.- Parameters:
functionName
- Name of theManagedFunction
.- Returns:
FunctionManager
for the namedManagedFunction
.- Throws:
UnknownFunctionException
- If unknownManagedFunction
name.
-
getObjectNames
java.lang.String[] getObjectNames()
Obtains the names of the bound
ManagedObject
instances within thisOffice
.This allows to dynamically managed this
Office
.Note that only
ManagedObjectScope.THREAD
andManagedObjectScope.PROCESS
scopedManagedObject
objects are available.- Returns:
-
createStateManager
StateManager createStateManager()
Creates aStateManager
.- Returns:
StateManager
.
-
-