Class InputManagedObjectNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.InputManagedObjectNodeImpl
- All Implemented Interfaces:
BoundManagedObjectNode,InputManagedObjectNode,LinkObjectNode,ManagedObjectExtensionNode,Node,AdministerableManagedObject,GovernerableManagedObject,OfficeFloorDependencyObjectNode,OfficeFloorInputManagedObject
InputManagedObjectNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.InputManagedObjectNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionInputManagedObjectNodeImpl(String inputManagedObjectName, String inputObjectType, OfficeFloorNode officeFloor, NodeContext context) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGovernance(GovernanceNode governance, OfficeNode office) Adds theGovernanceNodeto provideGovernanceover thisManagedObjectNodewhen used within theOfficeof theOfficeNode.voidaddPreLoadAdministration(AdministrationNode preLoadAdministration, OfficeNode office) Adds theAdministrationNodeto provide pre-loadAdministrationfor thisManagedObjectNodewhen used within theOfficeof theOfficeNode.voidaddTypeQualification(String qualifier, String type) Adds anTypeQualificationfor thisOfficeFloorInputManagedObject.booleanbuildFunctionManagedObject(String functionObjectName, ManagedFunctionBuilder<?, ?> functionBuilder, OfficeNode office, OfficeBindings officeBindings, CompileContext compileContext) Builds theManagedObjectonto theManagedFunctionNode.voidbuildOfficeManagedObject(OfficeNode office, OfficeBuilder officeBuilder, OfficeBindings officeBindings, CompileContext compileContext) Builds theManagedObjectinto theOffice.voidbuildSupplierThreadLocal(OptionalThreadLocalReceiver optionalThreadLocalReceiver) Builds theSupplierThreadLocalfrom the boundManagedObject.Obtains the name of thisAdministerableManagedObject.Obtains the name under which thisManagedObjectis made available to theOffice.Obtains the boundManagedObjectSourceNodefor thisInputManagedObjectNode.Node[]Obtains the childNodeinstances.getGovernances(OfficeNode managingOffice) Obtains the name of thisGovernerableManagedObject.Obtains the input object type.Obtains theLinkObjectNodelinked to thisLinkObjectNode.Obtains the location of theNode.Obtains theManagedObjectSourceNodefor thisBoundManagedObjectNode.Obtains the name of theNode.Obtains theNodetype.Obtains the name of thisOfficeFloorInputManagedObject.getPreLoadAdministrations(OfficeNode managingOffice) Obtains the pre-loadAdministrationNodeinstances providingAdministrationover thisInputManagedObjectNode.getTypeQualifications(CompileContext compileContext) Obtains theTypeQualificationinstances for theInputManagedObjectNode.voidInitialises theInputManagedObjectNode.booleanIndicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node) Links the inputLinkObjectNodeto thisLinkObjectNode.voidsetBoundOfficeFloorManagedObjectSource(OfficeFloorManagedObjectSource managedObjectSource) Specifies the boundOfficeFloorManagedObjectSourcefor thisOfficeFloorInputManagedObject.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
Constructor Details
-
InputManagedObjectNodeImpl
public InputManagedObjectNodeImpl(String inputManagedObjectName, String inputObjectType, OfficeFloorNode officeFloor, NodeContext context) Initiate.- Parameters:
inputManagedObjectName- Name of thisInputManagedObjectNode.inputObjectType- Input object type.officeFloor-OfficeFloorNode.context-NodeContext.
-
-
Method Details
-
getNodeName
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
getLocation
Description copied from interface:NodeObtains the location of theNode.- Specified by:
getLocationin interfaceNode- Returns:
- Location of the
Node. May benullifNodedoes not support a location.
-
getParentNode
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
getChildNodes
Description copied from interface:NodeObtains the childNodeinstances.- Specified by:
getChildNodesin interfaceNode- Returns:
- Child
Nodeinstances.
-
isInitialised
public boolean isInitialised()Description copied from interface:NodeIndicates if theNodehas been initialised.Nodeinstances should only be initialised once. Initialising theNodetwice is an issue.- Specified by:
isInitialisedin interfaceNode- Returns:
trueif initialised.
-
initialise
public void initialise()Description copied from interface:InputManagedObjectNodeInitialises theInputManagedObjectNode.- Specified by:
initialisein interfaceInputManagedObjectNode
-
getInputObjectType
Description copied from interface:InputManagedObjectNodeObtains the input object type.- Specified by:
getInputObjectTypein interfaceInputManagedObjectNode- Returns:
- Input object type.
-
getBoundManagedObjectSourceNode
Description copied from interface:InputManagedObjectNodeObtains the boundManagedObjectSourceNodefor thisInputManagedObjectNode.- Specified by:
getBoundManagedObjectSourceNodein interfaceInputManagedObjectNode- Returns:
- Bound
ManagedObjectSourceNodefor thisInputManagedObjectNode.
-
getBoundManagedObjectName
Description copied from interface:BoundManagedObjectNodeObtains the name under which thisManagedObjectis made available to theOffice.- Specified by:
getBoundManagedObjectNamein interfaceBoundManagedObjectNode- Returns:
- Name under which this
ManagedObjectis made available to theOffice.
-
addGovernance
Description copied from interface:BoundManagedObjectNodeAdds theGovernanceNodeto provideGovernanceover thisManagedObjectNodewhen used within theOfficeof theOfficeNode.- Specified by:
addGovernancein interfaceBoundManagedObjectNode- Parameters:
governance-GovernanceNode.office-OfficeNodefor which theGovernanceis applicable.
-
addPreLoadAdministration
Description copied from interface:BoundManagedObjectNodeAdds theAdministrationNodeto provide pre-loadAdministrationfor thisManagedObjectNodewhen used within theOfficeof theOfficeNode.- Specified by:
addPreLoadAdministrationin interfaceBoundManagedObjectNode- Parameters:
preLoadAdministration- Pre-loadAdministrationNode.office-OfficeNodefor which the pre-loadAdministrationis applicable.
-
getManagedObjectSourceNode
Description copied from interface:BoundManagedObjectNodeObtains theManagedObjectSourceNodefor thisBoundManagedObjectNode.- Specified by:
getManagedObjectSourceNodein interfaceBoundManagedObjectNode- Returns:
ManagedObjectSourceNodefor thisBoundManagedObjectNode.
-
buildOfficeManagedObject
public void buildOfficeManagedObject(OfficeNode office, OfficeBuilder officeBuilder, OfficeBindings officeBindings, CompileContext compileContext) Description copied from interface:BoundManagedObjectNodeBuilds theManagedObjectinto theOffice.- Specified by:
buildOfficeManagedObjectin interfaceBoundManagedObjectNode- Parameters:
office-OfficeNodeof theOfficethat thisManagedObjectis to build itself into.officeBuilder-OfficeBuilderfor theOffice.officeBindings-OfficeBindings.compileContext-CompileContext.
-
buildFunctionManagedObject
public boolean buildFunctionManagedObject(String functionObjectName, ManagedFunctionBuilder<?, ?> functionBuilder, OfficeNode office, OfficeBindings officeBindings, CompileContext compileContext) Description copied from interface:BoundManagedObjectNodeBuilds theManagedObjectonto theManagedFunctionNode.- Specified by:
buildFunctionManagedObjectin interfaceBoundManagedObjectNode- Parameters:
functionObjectName- Name of the object on theManagedFunctionNode.functionBuilder-ManagedFunctionBuilder.office-OfficeNodeof theOfficethat thisManagedObjectis to build itself into.officeBindings-OfficeBindings.compileContext-CompileContext.- Returns:
trueif bound toManagedFunctionNode.
-
buildSupplierThreadLocal
Description copied from interface:BoundManagedObjectNodeBuilds theSupplierThreadLocalfrom the boundManagedObject.- Specified by:
buildSupplierThreadLocalin interfaceBoundManagedObjectNode- Parameters:
optionalThreadLocalReceiver-OptionalThreadLocalReceiverto receive theOptionalThreadLocal.
-
getGovernances
Description copied from interface:InputManagedObjectNode- Specified by:
getGovernancesin interfaceInputManagedObjectNode- Parameters:
managingOffice-OfficeNodemanaging theInputManagedObjectNode, which ensures thatGovernancedoes not extend beyond the particularOfficeNode.- Returns:
GovernanceNodeinstances providingGovernanceover thisInputManagedObjectNode.
-
getPreLoadAdministrations
Description copied from interface:InputManagedObjectNodeObtains the pre-loadAdministrationNodeinstances providingAdministrationover thisInputManagedObjectNode.- Specified by:
getPreLoadAdministrationsin interfaceInputManagedObjectNode- Parameters:
managingOffice-OfficeNodemanaging theInputManagedObjectNode, which ensures thatAdministrationdoes not extend beyond the particularOfficeNode.- Returns:
AdministrationNodeinstances providing pre-loadAdministrationover thisInputManagedObjectNode.
-
getTypeQualifications
Description copied from interface:InputManagedObjectNodeObtains theTypeQualificationinstances for theInputManagedObjectNode.- Specified by:
getTypeQualificationsin interfaceInputManagedObjectNode- Parameters:
compileContext-CompileContext.- Returns:
TypeQualificationinstances for theInputManagedObjectNode.
-
getAdministerableManagedObjectName
Description copied from interface:AdministerableManagedObjectObtains the name of thisAdministerableManagedObject.- Specified by:
getAdministerableManagedObjectNamein interfaceAdministerableManagedObject- Returns:
- Name of this
AdministerableManagedObject.
-
getGovernerableManagedObjectName
Description copied from interface:GovernerableManagedObjectObtains the name of thisGovernerableManagedObject.- Specified by:
getGovernerableManagedObjectNamein interfaceGovernerableManagedObject- Returns:
- Name of this
GovernerableManagedObject.
-
getOfficeFloorInputManagedObjectName
Description copied from interface:OfficeFloorInputManagedObjectObtains the name of thisOfficeFloorInputManagedObject.- Specified by:
getOfficeFloorInputManagedObjectNamein interfaceOfficeFloorInputManagedObject- Returns:
- Name of this
OfficeFloorInputManagedObject.
-
addTypeQualification
Description copied from interface:OfficeFloorInputManagedObjectAdds an
TypeQualificationfor thisOfficeFloorInputManagedObject.This enables distinguishing
OfficeFloorInputManagedObjectinstances to enable, for example, dynamicTeamassignment.- Specified by:
addTypeQualificationin interfaceOfficeFloorInputManagedObject- Parameters:
qualifier- Qualifier. May benullif no qualification.type- Type (typically the fully qualified type).
-
setBoundOfficeFloorManagedObjectSource
public void setBoundOfficeFloorManagedObjectSource(OfficeFloorManagedObjectSource managedObjectSource) Description copied from interface:OfficeFloorInputManagedObjectSpecifies the boundOfficeFloorManagedObjectSourcefor thisOfficeFloorInputManagedObject.- Specified by:
setBoundOfficeFloorManagedObjectSourcein interfaceOfficeFloorInputManagedObject- Parameters:
managedObjectSource-OfficeFloorManagedObjectSourceto be bound should this not be input but required.
-
linkObjectNode
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-