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 a
ManagedObjectSource.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidautoWireFunctionDependencies(AutoWirer<LinkObjectNode> autoWirer, OfficeNode office, CompileContext compileContext) Auto-wires the function dependencies for thisManagedObjectSource.voidautoWireInputDependencies(AutoWirer<LinkObjectNode> autoWirer, OfficeNode office, CompileContext compileContext) Auto-wires the input dependencies for thisManagedObjectSource.voidautoWireStartupOrdering(AutoWirer<ManagedObjectSourceNode> autoWirer, OfficeNode office, CompileContext compileContext) Auto-wires the start up ordering for thisManagedObjectSource.voidautoWireTeams(AutoWirer<LinkTeamNode> autoWirer, CompileContext compileContext) Auto-wires theTeaminstances for thisManagedObjectSource.voidautoWireToOffice(OfficeNode officeNode, CompilerIssues issues) Auto-wires thisManagedObjectSourceNodeto theOfficeNode.voidbuildManagedObject(OfficeFloorBuilder builder, OfficeNode managingOffice, OfficeBuilder managingOfficeBuilder, OfficeBindings officeBindings, CompileContext compileContext) BuildsManagedObjectSourcefor thisManagedObjectNode.voidbuildSupplierThreadLocal(OptionalThreadLocalReceiver optionalThreadLocalReceiver) createExecutionManagedFunction(ManagedObjectFlowType<?> flowType, CompileContext compileContext) Creates theExecutionManagedFunction.getAugmentedManagedObjectExecutionStrategy(String executionStrategyName) Obtains theAugmentedManagedObjectExecutionStrategy.getAugmentedManagedObjectFlow(String flowName) Obtains theAugmentedManagedObjectFlow.getAugmentedManagedObjectTeam(String teamName) Obtains theAugmentedManagedObjectTeam.Obtains theInputManagedObjectNodefor thisManagedObjectSource.Obtains the name to build theManagedObjectSource.Obtains theOfficeFloorNodecontaining thisManagedObjectSourceNode.Obtains theOfficeNodecontaining thisManagedObjectSourceNode.Obtains theSectionNodecontaining thisManagedObjectSourceNode.voidinitialise(String managedObjectSourceClassName, ManagedObjectSource<?, ?> managedObjectSource) Initialises theManagedObjectSourceNode.booleanIndicates if there is auto-wired start up ordering.booleanIndicates if theManagedObjectSourceis fromSupplierSource.booleanlinkAutoWireStartAfter(String managedObjectType) Links an auto-wire start afterManagedObjectobject type.booleanlinkAutoWireStartBefore(String managedObjectType) Links an auto-wire start beforeManagedObjectobject type.booleanlinkInputManagedObjectNode(InputManagedObjectNode inputManagedObject) Links theInputManagedObjectNodefor thisManagedObjectSource.loadManagedObjectType(CompileContext compileContext) Loads theManagedObjectType.loadOfficeFloorManagedObjectSourceType(CompileContext compileContext) Loads theOfficeFloorManagedObjectSourceType.loadOfficeSectionManagedObjectSourceType(CompileContext compileContext) Loads theOfficeSectionManagedObjectSourceType.booleansourceManagedObjectSource(ManagedObjectSourceVisitor managedObjectSourceVisitor, CompileContext compileContext) Sources theManagedObjectSource.Methods inherited from interface net.officefloor.compile.internal.structure.LinkPoolNode
getLinkedPoolNode, linkPoolNodeMethods inherited from interface net.officefloor.compile.internal.structure.LinkStartAfterNode
getLinkedStartAfterNodes, linkStartAfterNodeMethods inherited from interface net.officefloor.compile.internal.structure.LinkStartBeforeNode
getLinkedStartBeforeNodes, linkStartBeforeNodeMethods inherited from interface net.officefloor.compile.internal.structure.Node
getChildNodes, getLocation, getNodeName, getNodeType, getParentNode, getQualifiedName, getQualifiedName, isInitialisedMethods inherited from interface net.officefloor.compile.spi.officefloor.OfficeFloorManagedObjectSource
addOfficeFloorManagedObject, getInputOfficeFloorManagedObjectDependency, getManagingOffice, getOfficeFloorManagedObjectExecutionStrategy, getOfficeFloorManagedObjectFlow, getOfficeFloorManagedObjectFunctionDependency, getOfficeFloorManagedObjectSourceName, getOfficeFloorManagedObjectTeam, setTimeoutMethods inherited from interface net.officefloor.compile.spi.office.OfficeManagedObjectSource
addOfficeManagedObject, getInputOfficeManagedObjectDependency, getOfficeManagedObjectFlow, getOfficeManagedObjectFunctionDependency, getOfficeManagedObjectSourceName, getOfficeManagedObjectTeam, setTimeoutMethods inherited from interface net.officefloor.compile.spi.office.OfficeSectionManagedObjectSource
getOfficeSectionManagedObject, getOfficeSectionManagedObjectSourceName, getOfficeSectionManagedObjectTeamMethods inherited from interface net.officefloor.compile.properties.PropertyConfigurable
addPropertyMethods inherited from interface net.officefloor.compile.spi.section.SectionManagedObjectSource
addSectionManagedObject, getInputSectionManagedObjectDependency, getSectionManagedObjectFlow, getSectionManagedObjectSourceName, setTimeout
-
Field Details
-
TYPE
Nodetype.- See Also:
-
-
Method Details
-
initialise
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
Obtains theAugmentedManagedObjectFlow.- Parameters:
flowName- Name of theAugmentedManagedObjectFlow.- Returns:
AugmentedManagedObjectFlow.
-
getAugmentedManagedObjectTeam
Obtains theAugmentedManagedObjectTeam.- Parameters:
teamName- Name of theAugmentedManagedObjectTeam.- Returns:
AugmentedManagedObjectTeam.
-
getAugmentedManagedObjectExecutionStrategy
AugmentedManagedObjectExecutionStrategy getAugmentedManagedObjectExecutionStrategy(String executionStrategyName) Obtains theAugmentedManagedObjectExecutionStrategy.- Parameters:
executionStrategyName- Name of theAugmentedManagedObjectExecutionStrategy.- Returns:
AugmentedManagedObjectExecutionStrategy.
-
loadManagedObjectType
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
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
Links an auto-wire start beforeManagedObjectobject type.- Parameters:
managedObjectType-ManagedObjectobject type.- Returns:
trueif linked.
-
linkAutoWireStartAfter
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
Auto-wires theTeaminstances for thisManagedObjectSource.- Parameters:
autoWirer-AutoWirer.compileContext-CompileContext.
-
autoWireToOffice
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
String getManagedObjectSourceName()Obtains the name to build theManagedObjectSource.- Returns:
- Name to build the
ManagedObjectSource.
-
buildSupplierThreadLocal
- Parameters:
optionalThreadLocalReceiver-OptionalThreadLocalReceiver.
-