Package net.officefloor.frame.api.manage
Interface Office
- All Known Implementing Classes:
OfficeImpl
public interface Office
Office within the
OfficeFloor.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionCreates aStateManager.getFunctionManager(String functionName) Obtains theFunctionManagerfor the namedManagedFunction.String[]Obtains the names of theFunctionManagerinstances within thisOffice.String[]Obtains the names of the boundManagedObjectinstances within thisOffice.
-
Method Details
-
getFunctionNames
String[] getFunctionNames()Obtains the names of the
FunctionManagerinstances within thisOffice.This allows to dynamically manage this
Office.- Returns:
- Names of the
FunctionManagerinstances within thisOffice.
-
getFunctionManager
Obtains theFunctionManagerfor the namedManagedFunction.- Parameters:
functionName- Name of theManagedFunction.- Returns:
FunctionManagerfor the namedManagedFunction.- Throws:
UnknownFunctionException- If unknownManagedFunctionname.
-
getObjectNames
String[] getObjectNames()Obtains the names of the bound
ManagedObjectinstances within thisOffice.This allows to dynamically managed this
Office.Note that only
ManagedObjectScope.THREADandManagedObjectScope.PROCESSscopedManagedObjectobjects are available.- Returns:
- Names of the available objects.
-
createStateManager
StateManager createStateManager()Creates aStateManager.- Returns:
StateManager.
-