Interface OfficeFloorNode
-
- All Superinterfaces:
ManagedObjectRegistry,Node,OfficeFloorDeployer,OverrideProperties,PropertyConfigurable,SourceIssues
- All Known Implementing Classes:
OfficeFloorNodeImpl
public interface OfficeFloorNode extends Node, PropertyConfigurable, OverrideProperties, ManagedObjectRegistry, OfficeFloorDeployer
OfficeFloornode.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringOFFICE_FLOOR_NAMEDefault name of theOfficeFloorNode.static java.lang.StringTYPENodetype.
-
Method Summary
-
Methods inherited from interface net.officefloor.compile.internal.structure.ManagedObjectRegistry
addManagedObjectNode, getManagedObjectNode
-
Methods inherited from interface net.officefloor.compile.internal.structure.Node
getChildNodes, getLocation, getNodeName, getNodeType, getParentNode, getQualifiedName, getQualifiedName, isInitialised
-
Methods inherited from interface net.officefloor.compile.spi.officefloor.OfficeFloorDeployer
addDeployedOffice, addDeployedOffice, addInputManagedObject, addManagedObjectPool, addManagedObjectPool, addManagedObjectSource, addManagedObjectSource, addManagedObjectSourceAugmentor, addOfficeFloorListener, addSupplier, addSupplier, addTeam, addTeam, addTeamAugmentor, enableAutoWireObjects, enableAutoWireTeams, getDeployedOffice, getDeployedOffices, link, link, link, link, link, link, link, setExecutive, setExecutive, startAfter, startAfter, startBefore, startBefore
-
Methods inherited from interface net.officefloor.compile.internal.structure.OverrideProperties
getOverridePropertyList
-
Methods inherited from interface net.officefloor.compile.properties.PropertyConfigurable
addProperty
-
Methods inherited from interface net.officefloor.compile.issues.SourceIssues
addIssue, addIssue
-
-
-
-
Field Detail
-
OFFICE_FLOOR_NAME
static final java.lang.String OFFICE_FLOOR_NAME
Default name of theOfficeFloorNode.- See Also:
- Constant Field Values
-
TYPE
static final java.lang.String TYPE
Nodetype.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialise
void initialise()
Initialises theOfficeFloorNode.
-
addManagedObjectSource
OfficeFloorManagedObjectSource addManagedObjectSource(java.lang.String managedObjectSourceName, SuppliedManagedObjectSourceNode suppliedManagedObject)
Adds aOfficeFloorManagedObjectSourcesupplied from anOfficeFloorSupplier.- Parameters:
managedObjectSourceName- Name of theOfficeFloorManagedObjectSource.suppliedManagedObject-SuppliedManagedObjectSourceNodeto supply theOfficeFloorManagedObjectSource.- Returns:
OfficeFloorManagedObjectSource.
-
sourceOfficeFloor
boolean sourceOfficeFloor(CompileContext compileContext)
Sources the
OfficeFloorinto thisOfficeFloorNode.This will only source the top level
OfficeSection.- Parameters:
compileContext-CompileContext.- Returns:
trueif successfully sourced. Otherwisefalsewith issue reported to theCompilerIssues.
-
sourceOfficeFloorTree
boolean sourceOfficeFloorTree(AutoWirerVisitor autoWirerVisitor, CompileContext compileContext)
Sources thisOfficeFloorNodeand all its descendantNodeinstances recursively.- Parameters:
autoWirerVisitor-AutoWirerVisitor.compileContext-CompileContext.- Returns:
trueif successfully sourced. Otherwisefalsewith issue reported to theCompilerIssues.
-
getAvailableTypes
AvailableType[] getAvailableTypes(CompileContext compileContext)
Obtains theAvailableTypeinstances.- Parameters:
compileContext-CompileContext.- Returns:
AvailableTypeinstances.
-
loadAutoWireObjectTargets
AutoWirer<LinkObjectNode> loadAutoWireObjectTargets(AutoWirer<LinkObjectNode> autoWirer, CompileContext compileContext)
Loads theAutoWiretargets for theOfficeFloorManagedObjectinstances.- Parameters:
autoWirer-AutoWirerto be loaded with theOfficeFloorManagedObjecttargets.compileContext-CompileContext.- Returns:
AutoWirerwith context for theOfficeFloor.
-
loadAutoWireManagedObjectSourceTargets
AutoWirer<ManagedObjectSourceNode> loadAutoWireManagedObjectSourceTargets(AutoWirer<ManagedObjectSourceNode> autoWirer, CompileContext compileContext)
Loads theAutoWiretargets for theManagedObjectSourceNodeinstances.- Parameters:
autoWirer-AutoWirerto be loaded with theOfficeFloorManagedObjectSourcetargets.compileContext-CompileContext.- Returns:
AutoWirerwith context for theOfficeFloor.
-
loadAutoWireExtensionTargets
AutoWirer<ManagedObjectExtensionNode> loadAutoWireExtensionTargets(AutoWirer<ManagedObjectExtensionNode> autoWirer, CompileContext compileContext)
Loads theAutoWireextension targets for theOfficeFloorManagedObject.- Parameters:
autoWirer-AutoWirerto be loaded with theOfficeFloorManagedObjectextension targets.compileContext-CompileContext.- Returns:
AutoWirerwith context for theOfficeFloor.
-
loadAutoWireTeamTargets
void loadAutoWireTeamTargets(AutoWirer<LinkTeamNode> autoWirer, OfficeTeamRegistry officeTeamRegistry, CompileContext compileContext)
Loads theAutoWiretargets for theOfficeFloorTeaminstances.- Parameters:
autoWirer-AutoWireto be loaded with theOfficeFloorTeamtargets.officeTeamRegistry-OfficeTeamRegistry.compileContext-CompileContext.
-
loadOfficeFloorType
OfficeFloorType loadOfficeFloorType(CompileContext compileContext)
Loads theOfficeFloorType.- Parameters:
compileContext-CompileContext.- Returns:
trueif theOfficeFloorTypewas loaded.
-
getOfficeFloorListeners
OfficeFloorListener[] getOfficeFloorListeners()
Obtains theOfficeFloorDeployerconfiguredOfficeFloorListenerinstances.- Returns:
OfficeFloorDeployerconfiguredOfficeFloorListenerinstances.
-
isDefaultExecutionStrategy
boolean isDefaultExecutionStrategy()
Indicates if defaultExecutionStrategyis being used.- Returns:
trueif defaultExecutionStrategyis being used.
-
deployOfficeFloor
OfficeFloor deployOfficeFloor(java.lang.String officeFloorName, OfficeFloorBuilder officeFloorBuilder, CompileContext compileContext)
Deploys theOfficeFloor.- Parameters:
officeFloorName- Name of theOfficeFloor.officeFloorBuilder-OfficeFloorBuilderto build the deployedOfficeFloor.compileContext-CompileContext.- Returns:
OfficeFloor.
-
loadExternalServicing
void loadExternalServicing(OfficeFloor officeFloor) throws UnknownOfficeException, UnknownFunctionException
Loads theFunctionManagerinstances to externally trigger thisOfficeFloorNode.- Parameters:
officeFloor-OfficeFloorfor thisOfficeFloorNode.- Throws:
UnknownOfficeException-UnknownOfficeException.UnknownFunctionException-UnknownFunctionException.
-
getInternalSuppliers
InternalSupplier[] getInternalSuppliers()
Obtains theInternalSupplierinstances.- Returns:
InternalSupplierinstances.
-
-