Class SupplierThreadLocalNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.SupplierThreadLocalNodeImpl
- All Implemented Interfaces:
LinkObjectNode,Node,SupplierThreadLocalNode,OfficeDependencyRequireNode,OfficeSupplierThreadLocal,OfficeFloorDependencyRequireNode,OfficeFloorSupplierThreadLocal
SupplierThreadLocalNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.SupplierThreadLocalNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionSupplierThreadLocalNodeImpl(String qualifier, String type, SupplierNode supplierNode, NodeContext context) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildSupplierThreadLocal(CompileContext context) Builds theSupplierThreadLocal.Node[]Obtains the childNodeinstances.Obtains theLinkObjectNodelinked to thisLinkObjectNode.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.Obtains the name of thisOfficeFloorSupplierThreadLocal.Obtains the name of thisOfficeSupplierThreadLocal.Obtains the qualifier.Obtains theSupplierNodecontaining thisSupplierThreadLocalNode.static StringgetSupplierThreadLocalName(String qualifier, String type) Generates the name for theSupplierThreadLocalNode.getType()Obtains the required type.voidinitialise(OptionalThreadLocalReceiver optionalThreadLocalReceiver) Initialises theSupplierThreadLocalNode.booleanIndicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node) Links the inputLinkObjectNodeto thisLinkObjectNode.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
-
SupplierThreadLocalNodeImpl
public SupplierThreadLocalNodeImpl(String qualifier, String type, SupplierNode supplierNode, NodeContext context) Initiate.- Parameters:
qualifier- Qualifier. May benull.type- Type.supplierNode-SupplierNode.context-NodeContext.
-
-
Method Details
-
getSupplierThreadLocalName
Generates the name for theSupplierThreadLocalNode.- Parameters:
qualifier- Qualifier. May benull.type- Type.- Returns:
SupplierThreadLocalNodename.
-
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
Description copied from interface:SupplierThreadLocalNodeInitialises theSupplierThreadLocalNode.- Specified by:
initialisein interfaceSupplierThreadLocalNode- Parameters:
optionalThreadLocalReceiver-OptionalThreadLocalReceiver.
-
getOfficeFloorSupplierThreadLocalName
Description copied from interface:OfficeFloorSupplierThreadLocalObtains the name of thisOfficeFloorSupplierThreadLocal.- Specified by:
getOfficeFloorSupplierThreadLocalNamein interfaceOfficeFloorSupplierThreadLocal- Returns:
- Name of this
OfficeFloorSupplierThreadLocal.
-
getQualifier
Description copied from interface:OfficeFloorSupplierThreadLocalObtains the qualifier.- Specified by:
getQualifierin interfaceOfficeFloorSupplierThreadLocal- Specified by:
getQualifierin interfaceOfficeSupplierThreadLocal- Returns:
- Qualifier. May be
null.
-
getType
Description copied from interface:OfficeFloorSupplierThreadLocalObtains the required type.- Specified by:
getTypein interfaceOfficeFloorSupplierThreadLocal- Specified by:
getTypein interfaceOfficeSupplierThreadLocal- Returns:
- Required type.
-
getOfficeSupplierThreadLocalName
Description copied from interface:OfficeSupplierThreadLocalObtains the name of thisOfficeSupplierThreadLocal.- Specified by:
getOfficeSupplierThreadLocalNamein interfaceOfficeSupplierThreadLocal- Returns:
- Name of this
OfficeSupplierThreadLocal.
-
getSupplierNode
Description copied from interface:SupplierThreadLocalNodeObtains theSupplierNodecontaining thisSupplierThreadLocalNode.- Specified by:
getSupplierNodein interfaceSupplierThreadLocalNode- Returns:
- Parent
SupplierNode.
-
buildSupplierThreadLocal
Description copied from interface:SupplierThreadLocalNodeBuilds theSupplierThreadLocal.- Specified by:
buildSupplierThreadLocalin interfaceSupplierThreadLocalNode- Parameters:
context-CompileContext.
-
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.
-