Class OfficeImpl
- java.lang.Object
-
- net.officefloor.frame.impl.execute.office.OfficeImpl
-
-
Constructor Summary
Constructors Constructor Description OfficeImpl(OfficeMetaData metaData)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete 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
.
-
-
-
Constructor Detail
-
OfficeImpl
public OfficeImpl(OfficeMetaData metaData)
Initiate.- Parameters:
metaData
-OfficeMetaData
.
-
-
Method Detail
-
getFunctionNames
public java.lang.String[] getFunctionNames()
Description copied from interface:Office
Obtains the names of the
FunctionManager
instances within thisOffice
.This allows to dynamically manage this
Office
.- Specified by:
getFunctionNames
in interfaceOffice
- Returns:
- Names of the
FunctionManager
instances within thisOffice
.
-
getFunctionManager
public FunctionManager getFunctionManager(java.lang.String functionName) throws UnknownFunctionException
Description copied from interface:Office
Obtains theFunctionManager
for the namedManagedFunction
.- Specified by:
getFunctionManager
in interfaceOffice
- Parameters:
functionName
- Name of theManagedFunction
.- Returns:
FunctionManager
for the namedManagedFunction
.- Throws:
UnknownFunctionException
- If unknownManagedFunction
name.
-
getObjectNames
public java.lang.String[] getObjectNames()
Description copied from interface:Office
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.- Specified by:
getObjectNames
in interfaceOffice
- Returns:
-
createStateManager
public StateManager createStateManager()
Description copied from interface:Office
Creates aStateManager
.- Specified by:
createStateManager
in interfaceOffice
- Returns:
StateManager
.
-
-