Interface ManagedObjectSourceNode
-
- All Superinterfaces:
LinkPoolNode,LinkStartAfterNode,LinkStartBeforeNode,Node,OfficeFloorManagedObjectSource,OfficeManagedObjectSource,OfficeSectionManagedObjectSource,PropertyConfigurable,SectionManagedObjectSource
- All Known Implementing Classes:
ManagedObjectSourceNodeImpl
public interface ManagedObjectSourceNode extends LinkPoolNode, LinkStartBeforeNode, LinkStartAfterNode, SectionManagedObjectSource, OfficeManagedObjectSource, OfficeSectionManagedObjectSource, OfficeFloorManagedObjectSource
Node representing aManagedObjectSource.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
Methods inherited from interface net.officefloor.compile.internal.structure.LinkPoolNode
getLinkedPoolNode, linkPoolNode
-
Methods inherited from interface net.officefloor.compile.internal.structure.LinkStartAfterNode
getLinkedStartAfterNodes, linkStartAfterNode
-
Methods inherited from interface net.officefloor.compile.internal.structure.LinkStartBeforeNode
getLinkedStartBeforeNodes, linkStartBeforeNode
-
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.OfficeFloorManagedObjectSource
addOfficeFloorManagedObject, getInputOfficeFloorManagedObjectDependency, getManagingOffice, getOfficeFloorManagedObjectExecutionStrategy, getOfficeFloorManagedObjectFlow, getOfficeFloorManagedObjectFunctionDependency, getOfficeFloorManagedObjectSourceName, getOfficeFloorManagedObjectTeam, setTimeout
-
Methods inherited from interface net.officefloor.compile.spi.office.OfficeManagedObjectSource
addOfficeManagedObject, getInputOfficeManagedObjectDependency, getOfficeManagedObjectFlow, getOfficeManagedObjectFunctionDependency, getOfficeManagedObjectSourceName, getOfficeManagedObjectTeam, setTimeout
-
Methods inherited from interface net.officefloor.compile.spi.office.OfficeSectionManagedObjectSource
getOfficeSectionManagedObject, getOfficeSectionManagedObjectSourceName, getOfficeSectionManagedObjectTeam
-
Methods inherited from interface net.officefloor.compile.properties.PropertyConfigurable
addProperty
-
Methods inherited from interface net.officefloor.compile.spi.section.SectionManagedObjectSource
addSectionManagedObject, getInputSectionManagedObjectDependency, getSectionManagedObjectFlow, getSectionManagedObjectSourceName, setTimeout
-
-
-
-
Field Detail
-
TYPE
static final java.lang.String TYPE
Nodetype.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialise
void initialise(java.lang.String managedObjectSourceClassName, ManagedObjectSource<?,?> managedObjectSource)Initialises theManagedObjectSourceNode.- Parameters:
managedObjectSourceClassName- Class name of theManagedObjectSource.managedObjectSource- Optional instantiatedManagedObjectSource. May benull.
-
isSupplied
boolean isSupplied()
Indicates if theManagedObjectSourceis fromSupplierSource.- Returns:
trueif fromSupplierSource.
-
sourceManagedObjectSource
boolean sourceManagedObjectSource(ManagedObjectSourceVisitor managedObjectSourceVisitor, CompileContext compileContext)
Sources theManagedObjectSource.- Parameters:
managedObjectSourceVisitor-ManagedObjectSourceVisitor.compileContext-CompileContext.- Returns:
trueif successfully sourced theManagedObjectSource.falseif failed to source, with issues reported to theCompilerIssues.
-
getAugmentedManagedObjectFlow
AugmentedManagedObjectFlow getAugmentedManagedObjectFlow(java.lang.String flowName)
Obtains theAugmentedManagedObjectFlow.- Parameters:
flowName- Name of theAugmentedManagedObjectFlow.- Returns:
AugmentedManagedObjectFlow.
-
getAugmentedManagedObjectTeam
AugmentedManagedObjectTeam getAugmentedManagedObjectTeam(java.lang.String teamName)
Obtains theAugmentedManagedObjectTeam.- Parameters:
teamName- Name of theAugmentedManagedObjectTeam.- Returns:
AugmentedManagedObjectTeam.
-
getAugmentedManagedObjectExecutionStrategy
AugmentedManagedObjectExecutionStrategy getAugmentedManagedObjectExecutionStrategy(java.lang.String executionStrategyName)
Obtains theAugmentedManagedObjectExecutionStrategy.- Parameters:
executionStrategyName- Name of theAugmentedManagedObjectExecutionStrategy.- Returns:
AugmentedManagedObjectExecutionStrategy.
-
loadManagedObjectType
ManagedObjectType<?> loadManagedObjectType(CompileContext compileContext)
Loads theManagedObjectType.- Parameters:
compileContext-CompileContext.- Returns:
ManagedObjectTypeornullif issue loading with issue reported to theCompilerIssues.
-
loadOfficeSectionManagedObjectSourceType
OfficeSectionManagedObjectSourceType loadOfficeSectionManagedObjectSourceType(CompileContext compileContext)
Loads theOfficeSectionManagedObjectSourceType.- Parameters:
compileContext-CompileContext.- Returns:
OfficeSectionManagedObjectSourceTypeornullif issue loading with issue reported to theCompilerIssues.
-
loadOfficeFloorManagedObjectSourceType
OfficeFloorManagedObjectSourceType loadOfficeFloorManagedObjectSourceType(CompileContext compileContext)
Loads theOfficeFloorManagedObjectSourceType.- Parameters:
compileContext-CompileContext.- Returns:
OfficeFloorManagedObjectSourceTypeornullif issue loading with issue reported to theCompilerIssues.
-
getSectionNode
SectionNode getSectionNode()
Obtains theSectionNodecontaining thisManagedObjectSourceNode.- Returns:
SectionNodecontaining thisManagedObjectSourceNode. May benullif not contained within anOfficeSection(in other words included above theSectionNodeinstances).
-
getOfficeNode
OfficeNode getOfficeNode()
Obtains theOfficeNodecontaining thisManagedObjectSourceNode.- Returns:
OfficeNodecontaining thisManagedObjectSourceNode. May benullif not contained within anOffice(in other words included above theOfficeNodeinstances).
-
getOfficeFloorNode
OfficeFloorNode getOfficeFloorNode()
Obtains theOfficeFloorNodecontaining thisManagedObjectSourceNode.- Returns:
OfficeFloorNodecontaining thisManagedObjectSourceNode.
-
getManagingOfficeNode
OfficeNode getManagingOfficeNode()
- Returns:
OfficeNodeof theManagingOfficefor thisManagedObjectSourceornullif can not obtain it.
-
linkInputManagedObjectNode
boolean linkInputManagedObjectNode(InputManagedObjectNode inputManagedObject)
Links theInputManagedObjectNodefor thisManagedObjectSource.- Parameters:
inputManagedObject-InputManagedObjectNode.- Returns:
trueif linked.
-
getInputManagedObjectNode
InputManagedObjectNode getInputManagedObjectNode()
Obtains theInputManagedObjectNodefor thisManagedObjectSource.- Returns:
InputManagedObjectNodefor thisManagedObjectSourceornullif can not obtain it.
-
autoWireInputDependencies
void autoWireInputDependencies(AutoWirer<LinkObjectNode> autoWirer, OfficeNode office, CompileContext compileContext)
Auto-wires the input dependencies for thisManagedObjectSource.- Parameters:
autoWirer-AutoWirer.office-OfficeNoderequiring the auto-wiring.compileContext-CompileContext.
-
autoWireFunctionDependencies
void autoWireFunctionDependencies(AutoWirer<LinkObjectNode> autoWirer, OfficeNode office, CompileContext compileContext)
Auto-wires the function dependencies for thisManagedObjectSource.- Parameters:
autoWirer-AutoWirer.office-OfficeNoderequiring the auto-wiring.compileContext-CompileContext.
-
linkAutoWireStartBefore
boolean linkAutoWireStartBefore(java.lang.String managedObjectType)
Links an auto-wire start beforeManagedObjectobject type.- Parameters:
managedObjectType-ManagedObjectobject type.- Returns:
trueif linked.
-
linkAutoWireStartAfter
boolean linkAutoWireStartAfter(java.lang.String managedObjectType)
Links an auto-wire start afterManagedObjectobject type.- Parameters:
managedObjectType-ManagedObjectobject type.- Returns:
trueif linked.
-
isAutoWireStartupOrdering
boolean isAutoWireStartupOrdering()
Indicates if there is auto-wired start up ordering.- Returns:
trueif there is auto-wired start up ordering.
-
autoWireStartupOrdering
void autoWireStartupOrdering(AutoWirer<ManagedObjectSourceNode> autoWirer, OfficeNode office, CompileContext compileContext)
Auto-wires the start up ordering for thisManagedObjectSource.- Parameters:
autoWirer-AutoWirer.office-OfficeNoderequiring the auto-wiring.compileContext-CompileContext.
-
autoWireTeams
void autoWireTeams(AutoWirer<LinkTeamNode> autoWirer, CompileContext compileContext)
Auto-wires theTeaminstances for thisManagedObjectSource.- Parameters:
autoWirer-AutoWirer.compileContext-CompileContext.
-
autoWireToOffice
void autoWireToOffice(OfficeNode officeNode, CompilerIssues issues)
Auto-wires thisManagedObjectSourceNodeto theOfficeNode.- Parameters:
officeNode-OfficeNode.issues-CompilerIssues.
-
createExecutionManagedFunction
ExecutionManagedFunction createExecutionManagedFunction(ManagedObjectFlowType<?> flowType, CompileContext compileContext)
Creates theExecutionManagedFunction.- Parameters:
flowType-ManagedObjectFlowType.compileContext-CompileContext.- Returns:
ExecutionManagedFunction.
-
buildManagedObject
void buildManagedObject(OfficeFloorBuilder builder, OfficeNode managingOffice, OfficeBuilder managingOfficeBuilder, OfficeBindings officeBindings, CompileContext compileContext)
BuildsManagedObjectSourcefor thisManagedObjectNode.- Parameters:
builder-OfficeFloorBuilder.managingOffice-OfficeNodeof theManagingOfficefor thisManagedObjectSource.managingOfficeBuilder-OfficeBuilderfor theManagingOffice.officeBindings-OfficeBindings.compileContext-CompileContext.
-
getManagedObjectSourceName
java.lang.String getManagedObjectSourceName()
Obtains the name to build theManagedObjectSource.- Returns:
- Name to build the
ManagedObjectSource.
-
buildSupplierThreadLocal
void buildSupplierThreadLocal(OptionalThreadLocalReceiver optionalThreadLocalReceiver)
- Parameters:
optionalThreadLocalReceiver-OptionalThreadLocalReceiver.
-
-