Package net.officefloor.frame.api.manage
Interface Office
-
- All Known Implementing Classes:
OfficeImpl
public interface OfficeOffice within theOfficeFloor.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StateManagercreateStateManager()Creates aStateManager.FunctionManagergetFunctionManager(java.lang.String functionName)Obtains theFunctionManagerfor the namedManagedFunction.java.lang.String[]getFunctionNames()Obtains the names of theFunctionManagerinstances within thisOffice.java.lang.String[]getObjectNames()Obtains the names of the boundManagedObjectinstances within thisOffice.
-
-
-
Method Detail
-
getFunctionNames
java.lang.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
FunctionManager getFunctionManager(java.lang.String functionName) throws UnknownFunctionException
Obtains theFunctionManagerfor the namedManagedFunction.- Parameters:
functionName- Name of theManagedFunction.- Returns:
FunctionManagerfor the namedManagedFunction.- Throws:
UnknownFunctionException- If unknownManagedFunctionname.
-
getObjectNames
java.lang.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:
-
createStateManager
StateManager createStateManager()
Creates aStateManager.- Returns:
StateManager.
-
-