Class InputManagedObjectNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.InputManagedObjectNodeImpl
-
- All Implemented Interfaces:
BoundManagedObjectNode
,InputManagedObjectNode
,LinkObjectNode
,Node
,OfficeFloorDependencyObjectNode
,OfficeFloorInputManagedObject
public class InputManagedObjectNodeImpl extends java.lang.Object implements InputManagedObjectNode
InputManagedObjectNode
implementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.InputManagedObjectNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description InputManagedObjectNodeImpl(java.lang.String inputManagedObjectName, java.lang.String inputObjectType, OfficeFloorNode officeFloor, NodeContext context)
Initiate.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
-
-
-
Constructor Detail
-
InputManagedObjectNodeImpl
public InputManagedObjectNodeImpl(java.lang.String inputManagedObjectName, java.lang.String inputObjectType, OfficeFloorNode officeFloor, NodeContext context)
Initiate.- Parameters:
inputManagedObjectName
- Name of thisInputManagedObjectNode
.inputObjectType
- Input object type.officeFloor
-OfficeFloorNode
.context
-NodeContext
.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:Node
Obtains the name of theNode
.- Specified by:
getNodeName
in interfaceNode
- Returns:
- Name of the
Node
.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:Node
Obtains theNode
type.- Specified by:
getNodeType
in interfaceNode
- Returns:
Node
type.
-
getLocation
public java.lang.String getLocation()
Description copied from interface:Node
Obtains the location of theNode
.- Specified by:
getLocation
in interfaceNode
- Returns:
- Location of the
Node
. May benull
ifNode
does not support a location.
-
getParentNode
public Node getParentNode()
Description copied from interface:Node
- Specified by:
getParentNode
in interfaceNode
- Returns:
Node
containing thisNode
.
-
getChildNodes
public Node[] getChildNodes()
Description copied from interface:Node
Obtains the childNode
instances.- Specified by:
getChildNodes
in interfaceNode
- Returns:
- Child
Node
instances.
-
isInitialised
public boolean isInitialised()
Description copied from interface:Node
Indicates if theNode
has been initialised.Node
instances should only be initialised once. Initialising theNode
twice is an issue.- Specified by:
isInitialised
in interfaceNode
- Returns:
true
if initialised.
-
initialise
public void initialise()
Description copied from interface:InputManagedObjectNode
Initialises theInputManagedObjectNode
.- Specified by:
initialise
in interfaceInputManagedObjectNode
-
getInputObjectType
public java.lang.String getInputObjectType()
Description copied from interface:InputManagedObjectNode
Obtains the input object type.- Specified by:
getInputObjectType
in interfaceInputManagedObjectNode
- Returns:
- Input object type.
-
getBoundManagedObjectSourceNode
public ManagedObjectSourceNode getBoundManagedObjectSourceNode()
Description copied from interface:InputManagedObjectNode
Obtains the boundManagedObjectSourceNode
for thisInputManagedObjectNode
.- Specified by:
getBoundManagedObjectSourceNode
in interfaceInputManagedObjectNode
- Returns:
- Bound
ManagedObjectSourceNode
for thisInputManagedObjectNode
.
-
getBoundManagedObjectName
public java.lang.String getBoundManagedObjectName()
Description copied from interface:BoundManagedObjectNode
Obtains the name under which thisManagedObject
is made available to theOffice
.- Specified by:
getBoundManagedObjectName
in interfaceBoundManagedObjectNode
- Returns:
- Name under which this
ManagedObject
is made available to theOffice
.
-
addGovernance
public void addGovernance(GovernanceNode governance, OfficeNode office)
Description copied from interface:BoundManagedObjectNode
Adds theGovernanceNode
to provideGovernance
over thisManagedObjectNode
when used within theOffice
of theOfficeNode
.- Specified by:
addGovernance
in interfaceBoundManagedObjectNode
- Parameters:
governance
-GovernanceNode
.office
-OfficeNode
for which theGovernance
is applicable.
-
addPreLoadAdministration
public void addPreLoadAdministration(AdministrationNode preLoadAdministration, OfficeNode office)
Description copied from interface:BoundManagedObjectNode
Adds theAdministrationNode
to provide pre-loadAdministration
for thisManagedObjectNode
when used within theOffice
of theOfficeNode
.- Specified by:
addPreLoadAdministration
in interfaceBoundManagedObjectNode
- Parameters:
preLoadAdministration
- Pre-loadAdministrationNode
.office
-OfficeNode
for which the pre-loadAdministration
is applicable.
-
getManagedObjectSourceNode
public ManagedObjectSourceNode getManagedObjectSourceNode()
Description copied from interface:BoundManagedObjectNode
Obtains theManagedObjectSourceNode
for thisBoundManagedObjectNode
.- Specified by:
getManagedObjectSourceNode
in interfaceBoundManagedObjectNode
- Returns:
ManagedObjectSourceNode
for thisBoundManagedObjectNode
.
-
buildOfficeManagedObject
public void buildOfficeManagedObject(OfficeNode office, OfficeBuilder officeBuilder, OfficeBindings officeBindings, CompileContext compileContext)
Description copied from interface:BoundManagedObjectNode
Builds theManagedObject
into theOffice
.- Specified by:
buildOfficeManagedObject
in interfaceBoundManagedObjectNode
- Parameters:
office
-OfficeNode
of theOffice
that thisManagedObject
is to build itself into.officeBuilder
-OfficeBuilder
for theOffice
.officeBindings
-OfficeBindings
.compileContext
-CompileContext
.
-
buildSupplierThreadLocal
public void buildSupplierThreadLocal(OptionalThreadLocalReceiver optionalThreadLocalReceiver)
Description copied from interface:BoundManagedObjectNode
Builds theSupplierThreadLocal
from the boundManagedObject
.- Specified by:
buildSupplierThreadLocal
in interfaceBoundManagedObjectNode
- Parameters:
optionalThreadLocalReceiver
-OptionalThreadLocalReceiver
to receive theOptionalThreadLocal
.
-
getGovernances
public GovernanceNode[] getGovernances(OfficeNode managingOffice)
Description copied from interface:InputManagedObjectNode
- Specified by:
getGovernances
in interfaceInputManagedObjectNode
- Parameters:
managingOffice
-OfficeNode
managing theInputManagedObjectNode
, which ensures thatGovernance
does not extend beyond the particularOfficeNode
.- Returns:
GovernanceNode
instances providingGovernance
over thisInputManagedObjectNode
.
-
getPreLoadAdministrations
public AdministrationNode[] getPreLoadAdministrations(OfficeNode managingOffice)
Description copied from interface:InputManagedObjectNode
Obtains the pre-loadAdministrationNode
instances providingAdministration
over thisInputManagedObjectNode
.- Specified by:
getPreLoadAdministrations
in interfaceInputManagedObjectNode
- Parameters:
managingOffice
-OfficeNode
managing theInputManagedObjectNode
, which ensures thatAdministration
does not extend beyond the particularOfficeNode
.- Returns:
AdministrationNode
instances providing pre-loadAdministration
over thisInputManagedObjectNode
.
-
getTypeQualifications
public TypeQualification[] getTypeQualifications(CompileContext compileContext)
Description copied from interface:InputManagedObjectNode
Obtains theTypeQualification
instances for theInputManagedObjectNode
.- Specified by:
getTypeQualifications
in interfaceInputManagedObjectNode
- Parameters:
compileContext
-CompileContext
.- Returns:
TypeQualification
instances for theInputManagedObjectNode
.
-
getOfficeFloorInputManagedObjectName
public java.lang.String getOfficeFloorInputManagedObjectName()
Description copied from interface:OfficeFloorInputManagedObject
Obtains the name of thisOfficeFloorInputManagedObject
.- Specified by:
getOfficeFloorInputManagedObjectName
in interfaceOfficeFloorInputManagedObject
- Returns:
- Name of this
OfficeFloorInputManagedObject
.
-
addTypeQualification
public void addTypeQualification(java.lang.String qualifier, java.lang.String type)
Description copied from interface:OfficeFloorInputManagedObject
Adds an
TypeQualification
for thisOfficeFloorInputManagedObject
.This enables distinguishing
OfficeFloorInputManagedObject
instances to enable, for example, dynamicTeam
assignment.- Specified by:
addTypeQualification
in interfaceOfficeFloorInputManagedObject
- Parameters:
qualifier
- Qualifier. May benull
if no qualification.type
- Type (typically the fully qualified type).
-
setBoundOfficeFloorManagedObjectSource
public void setBoundOfficeFloorManagedObjectSource(OfficeFloorManagedObjectSource managedObjectSource)
Description copied from interface:OfficeFloorInputManagedObject
Specifies the boundOfficeFloorManagedObjectSource
for thisOfficeFloorInputManagedObject
.- Specified by:
setBoundOfficeFloorManagedObjectSource
in interfaceOfficeFloorInputManagedObject
- Parameters:
managedObjectSource
-OfficeFloorManagedObjectSource
to be bound should this not be input but required.
-
linkObjectNode
public boolean linkObjectNode(LinkObjectNode node)
Description copied from interface:LinkObjectNode
Links the inputLinkObjectNode
to thisLinkObjectNode
.- Specified by:
linkObjectNode
in interfaceLinkObjectNode
- Parameters:
node
-LinkObjectNode
to link to thisLinkObjectNode
.- Returns:
true
if linked.
-
getLinkedObjectNode
public LinkObjectNode getLinkedObjectNode()
Description copied from interface:LinkObjectNode
Obtains theLinkObjectNode
linked to thisLinkObjectNode
.- Specified by:
getLinkedObjectNode
in interfaceLinkObjectNode
- Returns:
LinkObjectNode
linked to thisLinkObjectNode
.
-
-