Interface OfficeNode
-
- All Superinterfaces:
DeployedOffice
,LinkOfficeNode
,ManagedObjectRegistry
,Node
,OfficeArchitect
,OfficeTeamRegistry
,OverrideProperties
,PropertyConfigurable
,SourceIssues
- All Known Implementing Classes:
OfficeNodeImpl
public interface OfficeNode extends LinkOfficeNode, ManagedObjectRegistry, OfficeTeamRegistry, OverrideProperties, OfficeArchitect, DeployedOffice
Office
node.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OfficeManagedObjectSource
addManagedObjectSource(java.lang.String managedObjectSourceName, SuppliedManagedObjectSourceNode suppliedManagedObject)
Adds aOfficeManagedObjectSource
supplied from anOfficeSupplier
.void
autoWireObjects(AutoWirer<LinkObjectNode> autoWirer, CompileContext compileContext)
Auto-wires theOfficeObjectNode
instances that are unlinked.void
autoWireTeams(AutoWirer<LinkTeamNode> autoWirer, CompileContext compileContext)
Auto-wires theOfficeTeamNode
instances that are unlinked.OfficeBindings
buildOffice(OfficeFloorBuilder builder, CompileContext compileContext, Profiler profiler)
Builds theOffice
for thisOfficeNode
.java.lang.String[]
getAdditionalProfiles()
Obtains the additional profiles.AvailableType[]
getAvailableTypes(CompileContext compileContext)
Obtains theAvailableType
instances.InternalSupplier[]
getInternalSuppliers()
Obtains theInternalSupplier
instances for theOffice
.OfficeFloorNode
getOfficeFloorNode()
Obtains theOfficeFloorNode
containing thisOfficeNode
.void
initialise(java.lang.String officeSourceClassName, OfficeSource officeSource, java.lang.String officeLocation)
Initialises theOfficeNode
.void
loadExternalServicing(Office office)
Loads theFunctionManager
instances to externally trigger thisOfficeNode
.OfficeType
loadOfficeType(CompileContext compileContext)
Loads theOfficeType
.boolean
runExecutionExplorers(CompileContext compileContext)
Runs theExecutionExplorer
instances.boolean
sourceOfficeTree(ManagedObjectSourceVisitor managedObjectSourceVisitor, AutoWirerVisitor autoWirerVisitor, CompileContext compileContext)
boolean
sourceOfficeWithTopLevelSections(ManagedObjectSourceVisitor managedObjectSourceVisitor, CompileContext compileContext)
-
Methods inherited from interface net.officefloor.compile.spi.officefloor.DeployedOffice
addAdditionalProfile, addOverrideProperty, getDeployedOfficeInput, getDeployedOfficeName, getDeployedOfficeObject, getDeployedOfficeTeam
-
Methods inherited from interface net.officefloor.compile.internal.structure.LinkOfficeNode
getLinkedOfficeNode, linkOfficeNode
-
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.office.OfficeArchitect
addManagedFunctionAugmentor, addManagedObjectPool, addManagedObjectPool, addOfficeAdministration, addOfficeAdministration, addOfficeCompletionExplorer, addOfficeEscalation, addOfficeEscalationExplorer, addOfficeGovernance, addOfficeGovernance, addOfficeInput, addOfficeManagedObjectSource, addOfficeManagedObjectSource, addOfficeObject, addOfficeOutput, addOfficeSection, addOfficeSection, addOfficeSectionTransformer, addOfficeStart, addOfficeTeam, addSupplier, addSupplier, enableAutoWireObjects, enableAutoWireTeams, getOfficeSection, link, link, link, link, startAfter, startAfter, startBefore, startBefore
-
Methods inherited from interface net.officefloor.compile.internal.structure.OfficeTeamRegistry
createOfficeTeam, getOfficeTeams
-
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
-
TYPE
static final java.lang.String TYPE
Node
type.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialise
void initialise(java.lang.String officeSourceClassName, OfficeSource officeSource, java.lang.String officeLocation)
Initialises theOfficeNode
.- Parameters:
officeSourceClassName
-OfficeSource
class name.officeSource
- Optional instantiatedOfficeSource
. May benull
.officeLocation
- Location of theOffice
.
-
getAdditionalProfiles
java.lang.String[] getAdditionalProfiles()
Obtains the additional profiles.- Returns:
- Additional profiles.
-
addManagedObjectSource
OfficeManagedObjectSource addManagedObjectSource(java.lang.String managedObjectSourceName, SuppliedManagedObjectSourceNode suppliedManagedObject)
Adds aOfficeManagedObjectSource
supplied from anOfficeSupplier
.- Parameters:
managedObjectSourceName
- Name of theOfficeManagedObjectSource
.suppliedManagedObject
-SuppliedManagedObjectSourceNode
to supply theOfficeManagedObjectSource
.- Returns:
OfficeManagedObjectSource
.
-
sourceOfficeWithTopLevelSections
boolean sourceOfficeWithTopLevelSections(ManagedObjectSourceVisitor managedObjectSourceVisitor, CompileContext compileContext)
- Parameters:
managedObjectSourceVisitor
-ManagedObjectSourceVisitor
.compileContext
-CompileContext
.- Returns:
true
if successfully sourced. Otherwisefalse
with issue reported to theCompilerIssues
.
-
sourceOfficeTree
boolean sourceOfficeTree(ManagedObjectSourceVisitor managedObjectSourceVisitor, AutoWirerVisitor autoWirerVisitor, CompileContext compileContext)
- Parameters:
managedObjectSourceVisitor
-ManagedObjectSourceVisitor
.compileContext
-CompileContext
.- Returns:
true
if successfully sourced. Otherwisefalse
with issue reported to theCompilerIssues
.
-
getOfficeFloorNode
OfficeFloorNode getOfficeFloorNode()
Obtains theOfficeFloorNode
containing thisOfficeNode
.- Returns:
OfficeFloorNode
containing thisOfficeNode
.
-
loadOfficeType
OfficeType loadOfficeType(CompileContext compileContext)
Loads theOfficeType
.- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeType
ornull
if issue loading with issue reported to theCompilerIssues
.
-
getAvailableTypes
AvailableType[] getAvailableTypes(CompileContext compileContext)
Obtains theAvailableType
instances.- Parameters:
compileContext
-CompileContext
.- Returns:
AvailableType
instances.
-
autoWireObjects
void autoWireObjects(AutoWirer<LinkObjectNode> autoWirer, CompileContext compileContext)
Auto-wires theOfficeObjectNode
instances that are unlinked.- Parameters:
autoWirer
-AutoWirer
.compileContext
-CompileContext
.
-
autoWireTeams
void autoWireTeams(AutoWirer<LinkTeamNode> autoWirer, CompileContext compileContext)
Auto-wires theOfficeTeamNode
instances that are unlinked.- Parameters:
autoWirer
-AutoWirer
.compileContext
-CompileContext
.
-
runExecutionExplorers
boolean runExecutionExplorers(CompileContext compileContext)
Runs theExecutionExplorer
instances.- Parameters:
compileContext
-CompileContext
.- Returns:
true
if successfully explored execution.
-
buildOffice
OfficeBindings buildOffice(OfficeFloorBuilder builder, CompileContext compileContext, Profiler profiler)
Builds theOffice
for thisOfficeNode
.- Parameters:
builder
-OfficeFloorBuilder
.compileContext
-CompileContext
.profiler
- OptionalProfiler
. May benull
.- Returns:
OfficeBuilder
for the builtOffice
.
-
loadExternalServicing
void loadExternalServicing(Office office) throws UnknownFunctionException
Loads theFunctionManager
instances to externally trigger thisOfficeNode
.- Parameters:
office
-Office
for thisOfficeNode
.- Throws:
UnknownFunctionException
-UnknownFunctionException
.
-
getInternalSuppliers
InternalSupplier[] getInternalSuppliers()
Obtains theInternalSupplier
instances for theOffice
.- Returns:
InternalSupplier
instances for theOffice
.
-
-