Interface OfficeFloorNode
-
- All Superinterfaces:
ManagedObjectRegistry
,Node
,OfficeFloorDeployer
,OverrideProperties
,PropertyConfigurable
,SourceIssues
- All Known Implementing Classes:
OfficeFloorNodeImpl
public interface OfficeFloorNode extends Node, PropertyConfigurable, OverrideProperties, ManagedObjectRegistry, OfficeFloorDeployer
OfficeFloor
node.- Author:
- Daniel Sagenschneider
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
OFFICE_FLOOR_NAME
Default name of theOfficeFloorNode
.static java.lang.String
TYPE
Node
type.
-
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
Node
type.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialise
void initialise()
Initialises theOfficeFloorNode
.
-
addManagedObjectSource
OfficeFloorManagedObjectSource addManagedObjectSource(java.lang.String managedObjectSourceName, SuppliedManagedObjectSourceNode suppliedManagedObject)
Adds aOfficeFloorManagedObjectSource
supplied from anOfficeFloorSupplier
.- Parameters:
managedObjectSourceName
- Name of theOfficeFloorManagedObjectSource
.suppliedManagedObject
-SuppliedManagedObjectSourceNode
to supply theOfficeFloorManagedObjectSource
.- Returns:
OfficeFloorManagedObjectSource
.
-
sourceOfficeFloor
boolean sourceOfficeFloor(CompileContext compileContext)
Sources the
OfficeFloor
into thisOfficeFloorNode
.This will only source the top level
OfficeSection
.- Parameters:
compileContext
-CompileContext
.- Returns:
true
if successfully sourced. Otherwisefalse
with issue reported to theCompilerIssues
.
-
sourceOfficeFloorTree
boolean sourceOfficeFloorTree(AutoWirerVisitor autoWirerVisitor, CompileContext compileContext)
Sources thisOfficeFloorNode
and all its descendantNode
instances recursively.- Parameters:
autoWirerVisitor
-AutoWirerVisitor
.compileContext
-CompileContext
.- Returns:
true
if successfully sourced. Otherwisefalse
with issue reported to theCompilerIssues
.
-
getAvailableTypes
AvailableType[] getAvailableTypes(CompileContext compileContext)
Obtains theAvailableType
instances.- Parameters:
compileContext
-CompileContext
.- Returns:
AvailableType
instances.
-
loadAutoWireObjectTargets
AutoWirer<LinkObjectNode> loadAutoWireObjectTargets(AutoWirer<LinkObjectNode> autoWirer, CompileContext compileContext)
Loads theAutoWire
targets for theOfficeFloorManagedObject
instances.- Parameters:
autoWirer
-AutoWirer
to be loaded with theOfficeFloorManagedObject
targets.compileContext
-CompileContext
.- Returns:
AutoWirer
with context for theOfficeFloor
.
-
loadAutoWireManagedObjectSourceTargets
AutoWirer<ManagedObjectSourceNode> loadAutoWireManagedObjectSourceTargets(AutoWirer<ManagedObjectSourceNode> autoWirer, CompileContext compileContext)
Loads theAutoWire
targets for theManagedObjectSourceNode
instances.- Parameters:
autoWirer
-AutoWirer
to be loaded with theOfficeFloorManagedObjectSource
targets.compileContext
-CompileContext
.- Returns:
AutoWirer
with context for theOfficeFloor
.
-
loadAutoWireExtensionTargets
AutoWirer<ManagedObjectExtensionNode> loadAutoWireExtensionTargets(AutoWirer<ManagedObjectExtensionNode> autoWirer, CompileContext compileContext)
Loads theAutoWire
extension targets for theOfficeFloorManagedObject
.- Parameters:
autoWirer
-AutoWirer
to be loaded with theOfficeFloorManagedObject
extension targets.compileContext
-CompileContext
.- Returns:
AutoWirer
with context for theOfficeFloor
.
-
loadAutoWireTeamTargets
void loadAutoWireTeamTargets(AutoWirer<LinkTeamNode> autoWirer, OfficeTeamRegistry officeTeamRegistry, CompileContext compileContext)
Loads theAutoWire
targets for theOfficeFloorTeam
instances.- Parameters:
autoWirer
-AutoWire
to be loaded with theOfficeFloorTeam
targets.officeTeamRegistry
-OfficeTeamRegistry
.compileContext
-CompileContext
.
-
loadOfficeFloorType
OfficeFloorType loadOfficeFloorType(CompileContext compileContext)
Loads theOfficeFloorType
.- Parameters:
compileContext
-CompileContext
.- Returns:
true
if theOfficeFloorType
was loaded.
-
getOfficeFloorListeners
OfficeFloorListener[] getOfficeFloorListeners()
Obtains theOfficeFloorDeployer
configuredOfficeFloorListener
instances.- Returns:
OfficeFloorDeployer
configuredOfficeFloorListener
instances.
-
isDefaultExecutionStrategy
boolean isDefaultExecutionStrategy()
Indicates if defaultExecutionStrategy
is being used.- Returns:
true
if defaultExecutionStrategy
is being used.
-
deployOfficeFloor
OfficeFloor deployOfficeFloor(java.lang.String officeFloorName, OfficeFloorBuilder officeFloorBuilder, CompileContext compileContext)
Deploys theOfficeFloor
.- Parameters:
officeFloorName
- Name of theOfficeFloor
.officeFloorBuilder
-OfficeFloorBuilder
to build the deployedOfficeFloor
.compileContext
-CompileContext
.- Returns:
OfficeFloor
.
-
loadExternalServicing
void loadExternalServicing(OfficeFloor officeFloor) throws UnknownOfficeException, UnknownFunctionException
Loads theFunctionManager
instances to externally trigger thisOfficeFloorNode
.- Parameters:
officeFloor
-OfficeFloor
for thisOfficeFloorNode
.- Throws:
UnknownOfficeException
-UnknownOfficeException
.UnknownFunctionException
-UnknownFunctionException
.
-
getInternalSuppliers
InternalSupplier[] getInternalSuppliers()
Obtains theInternalSupplier
instances.- Returns:
InternalSupplier
instances.
-
-