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
Officenode.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OfficeManagedObjectSourceaddManagedObjectSource(java.lang.String managedObjectSourceName, SuppliedManagedObjectSourceNode suppliedManagedObject)Adds aOfficeManagedObjectSourcesupplied from anOfficeSupplier.voidautoWireObjects(AutoWirer<LinkObjectNode> autoWirer, CompileContext compileContext)Auto-wires theOfficeObjectNodeinstances that are unlinked.voidautoWireTeams(AutoWirer<LinkTeamNode> autoWirer, CompileContext compileContext)Auto-wires theOfficeTeamNodeinstances that are unlinked.OfficeBindingsbuildOffice(OfficeFloorBuilder builder, CompileContext compileContext, Profiler profiler)Builds theOfficefor thisOfficeNode.java.lang.String[]getAdditionalProfiles()Obtains the additional profiles.AvailableType[]getAvailableTypes(CompileContext compileContext)Obtains theAvailableTypeinstances.InternalSupplier[]getInternalSuppliers()Obtains theInternalSupplierinstances for theOffice.OfficeFloorNodegetOfficeFloorNode()Obtains theOfficeFloorNodecontaining thisOfficeNode.voidinitialise(java.lang.String officeSourceClassName, OfficeSource officeSource, java.lang.String officeLocation)Initialises theOfficeNode.voidloadExternalServicing(Office office)Loads theFunctionManagerinstances to externally trigger thisOfficeNode.OfficeTypeloadOfficeType(CompileContext compileContext)Loads theOfficeType.booleanrunExecutionExplorers(CompileContext compileContext)Runs theExecutionExplorerinstances.booleansourceOfficeTree(ManagedObjectSourceVisitor managedObjectSourceVisitor, AutoWirerVisitor autoWirerVisitor, CompileContext compileContext)booleansourceOfficeWithTopLevelSections(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
Nodetype.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialise
void initialise(java.lang.String officeSourceClassName, OfficeSource officeSource, java.lang.String officeLocation)Initialises theOfficeNode.- Parameters:
officeSourceClassName-OfficeSourceclass 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 aOfficeManagedObjectSourcesupplied from anOfficeSupplier.- Parameters:
managedObjectSourceName- Name of theOfficeManagedObjectSource.suppliedManagedObject-SuppliedManagedObjectSourceNodeto supply theOfficeManagedObjectSource.- Returns:
OfficeManagedObjectSource.
-
sourceOfficeWithTopLevelSections
boolean sourceOfficeWithTopLevelSections(ManagedObjectSourceVisitor managedObjectSourceVisitor, CompileContext compileContext)
- Parameters:
managedObjectSourceVisitor-ManagedObjectSourceVisitor.compileContext-CompileContext.- Returns:
trueif successfully sourced. Otherwisefalsewith issue reported to theCompilerIssues.
-
sourceOfficeTree
boolean sourceOfficeTree(ManagedObjectSourceVisitor managedObjectSourceVisitor, AutoWirerVisitor autoWirerVisitor, CompileContext compileContext)
- Parameters:
managedObjectSourceVisitor-ManagedObjectSourceVisitor.compileContext-CompileContext.- Returns:
trueif successfully sourced. Otherwisefalsewith issue reported to theCompilerIssues.
-
getOfficeFloorNode
OfficeFloorNode getOfficeFloorNode()
Obtains theOfficeFloorNodecontaining thisOfficeNode.- Returns:
OfficeFloorNodecontaining thisOfficeNode.
-
loadOfficeType
OfficeType loadOfficeType(CompileContext compileContext)
Loads theOfficeType.- Parameters:
compileContext-CompileContext.- Returns:
OfficeTypeornullif issue loading with issue reported to theCompilerIssues.
-
getAvailableTypes
AvailableType[] getAvailableTypes(CompileContext compileContext)
Obtains theAvailableTypeinstances.- Parameters:
compileContext-CompileContext.- Returns:
AvailableTypeinstances.
-
autoWireObjects
void autoWireObjects(AutoWirer<LinkObjectNode> autoWirer, CompileContext compileContext)
Auto-wires theOfficeObjectNodeinstances that are unlinked.- Parameters:
autoWirer-AutoWirer.compileContext-CompileContext.
-
autoWireTeams
void autoWireTeams(AutoWirer<LinkTeamNode> autoWirer, CompileContext compileContext)
Auto-wires theOfficeTeamNodeinstances that are unlinked.- Parameters:
autoWirer-AutoWirer.compileContext-CompileContext.
-
runExecutionExplorers
boolean runExecutionExplorers(CompileContext compileContext)
Runs theExecutionExplorerinstances.- Parameters:
compileContext-CompileContext.- Returns:
trueif successfully explored execution.
-
buildOffice
OfficeBindings buildOffice(OfficeFloorBuilder builder, CompileContext compileContext, Profiler profiler)
Builds theOfficefor thisOfficeNode.- Parameters:
builder-OfficeFloorBuilder.compileContext-CompileContext.profiler- OptionalProfiler. May benull.- Returns:
OfficeBuilderfor the builtOffice.
-
loadExternalServicing
void loadExternalServicing(Office office) throws UnknownFunctionException
Loads theFunctionManagerinstances to externally trigger thisOfficeNode.- Parameters:
office-Officefor thisOfficeNode.- Throws:
UnknownFunctionException-UnknownFunctionException.
-
getInternalSuppliers
InternalSupplier[] getInternalSuppliers()
Obtains theInternalSupplierinstances for theOffice.- Returns:
InternalSupplierinstances for theOffice.
-
-