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
Node
type.- 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 theManagedObjectSource
is fromSupplierSource
.- Returns:
true
if fromSupplierSource
.
-
sourceManagedObjectSource
boolean sourceManagedObjectSource(ManagedObjectSourceVisitor managedObjectSourceVisitor, CompileContext compileContext)
Sources theManagedObjectSource
.- Parameters:
managedObjectSourceVisitor
-ManagedObjectSourceVisitor
.compileContext
-CompileContext
.- Returns:
true
if successfully sourced theManagedObjectSource
.false
if 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:
ManagedObjectType
ornull
if issue loading with issue reported to theCompilerIssues
.
-
loadOfficeSectionManagedObjectSourceType
OfficeSectionManagedObjectSourceType loadOfficeSectionManagedObjectSourceType(CompileContext compileContext)
Loads theOfficeSectionManagedObjectSourceType
.- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeSectionManagedObjectSourceType
ornull
if issue loading with issue reported to theCompilerIssues
.
-
loadOfficeFloorManagedObjectSourceType
OfficeFloorManagedObjectSourceType loadOfficeFloorManagedObjectSourceType(CompileContext compileContext)
Loads theOfficeFloorManagedObjectSourceType
.- Parameters:
compileContext
-CompileContext
.- Returns:
OfficeFloorManagedObjectSourceType
ornull
if issue loading with issue reported to theCompilerIssues
.
-
getSectionNode
SectionNode getSectionNode()
Obtains theSectionNode
containing thisManagedObjectSourceNode
.- Returns:
SectionNode
containing thisManagedObjectSourceNode
. May benull
if not contained within anOfficeSection
(in other words included above theSectionNode
instances).
-
getOfficeNode
OfficeNode getOfficeNode()
Obtains theOfficeNode
containing thisManagedObjectSourceNode
.- Returns:
OfficeNode
containing thisManagedObjectSourceNode
. May benull
if not contained within anOffice
(in other words included above theOfficeNode
instances).
-
getOfficeFloorNode
OfficeFloorNode getOfficeFloorNode()
Obtains theOfficeFloorNode
containing thisManagedObjectSourceNode
.- Returns:
OfficeFloorNode
containing thisManagedObjectSourceNode
.
-
getManagingOfficeNode
OfficeNode getManagingOfficeNode()
- Returns:
OfficeNode
of theManagingOffice
for thisManagedObjectSource
ornull
if can not obtain it.
-
linkInputManagedObjectNode
boolean linkInputManagedObjectNode(InputManagedObjectNode inputManagedObject)
Links theInputManagedObjectNode
for thisManagedObjectSource
.- Parameters:
inputManagedObject
-InputManagedObjectNode
.- Returns:
true
if linked.
-
getInputManagedObjectNode
InputManagedObjectNode getInputManagedObjectNode()
Obtains theInputManagedObjectNode
for thisManagedObjectSource
.- Returns:
InputManagedObjectNode
for thisManagedObjectSource
ornull
if 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
-OfficeNode
requiring 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
-OfficeNode
requiring the auto-wiring.compileContext
-CompileContext
.
-
linkAutoWireStartBefore
boolean linkAutoWireStartBefore(java.lang.String managedObjectType)
Links an auto-wire start beforeManagedObject
object type.- Parameters:
managedObjectType
-ManagedObject
object type.- Returns:
true
if linked.
-
linkAutoWireStartAfter
boolean linkAutoWireStartAfter(java.lang.String managedObjectType)
Links an auto-wire start afterManagedObject
object type.- Parameters:
managedObjectType
-ManagedObject
object type.- Returns:
true
if linked.
-
isAutoWireStartupOrdering
boolean isAutoWireStartupOrdering()
Indicates if there is auto-wired start up ordering.- Returns:
true
if 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
-OfficeNode
requiring the auto-wiring.compileContext
-CompileContext
.
-
autoWireTeams
void autoWireTeams(AutoWirer<LinkTeamNode> autoWirer, CompileContext compileContext)
Auto-wires theTeam
instances for thisManagedObjectSource
.- Parameters:
autoWirer
-AutoWirer
.compileContext
-CompileContext
.
-
autoWireToOffice
void autoWireToOffice(OfficeNode officeNode, CompilerIssues issues)
Auto-wires thisManagedObjectSourceNode
to 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)
BuildsManagedObjectSource
for thisManagedObjectNode
.- Parameters:
builder
-OfficeFloorBuilder
.managingOffice
-OfficeNode
of theManagingOffice
for thisManagedObjectSource
.managingOfficeBuilder
-OfficeBuilder
for 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
.
-
-