Class ManagedObjectFunctionDependencyNodeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.ManagedObjectFunctionDependencyNodeImpl
-
- All Implemented Interfaces:
LinkObjectNode,ManagedObjectFunctionDependencyNode,Node,ManagedObjectDependency,OfficeDependencyRequireNode,OfficeManagedObjectFunctionDependency,OfficeFloorDependencyRequireNode,OfficeFloorManagedObjectFunctionDependency
public class ManagedObjectFunctionDependencyNodeImpl extends java.lang.Object implements ManagedObjectFunctionDependencyNode
ManagedObjectFunctionDependencyNodeimplementation.- Author:
- Daniel Sagenschneider
-
-
Field Summary
-
Fields inherited from interface net.officefloor.compile.internal.structure.ManagedObjectFunctionDependencyNode
TYPE
-
-
Constructor Summary
Constructors Constructor Description ManagedObjectFunctionDependencyNodeImpl(java.lang.String dependencyName, ManagedObjectSourceNode managedObjectSource, NodeContext context)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node[]getChildNodes()Obtains the childNodeinstances.LinkObjectNodegetLinkedObjectNode()Obtains theLinkObjectNodelinked to thisLinkObjectNode.java.lang.StringgetLocation()Obtains the location of theNode.java.lang.StringgetManagedObjectDependencyName()Obtains the name of thisManagedObjectDependency.java.lang.StringgetNodeName()Obtains the name of theNode.java.lang.StringgetNodeType()Obtains theNodetype.NodegetParentNode()voidinitialise()Initialises theManagedObjectFunctionDependencyNode.booleanisInitialised()Indicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node)Links the inputLinkObjectNodeto thisLinkObjectNode.ObjectDependencyTypeloadObjectDependencyType(CompileContext compileContext)===================== ObjectDependencyNode ==============================voidsetOverrideQualifier(java.lang.String qualifier)Overrides the qualifier specified by theManagedObjectSource.voidsetSpecificType(java.lang.String type)Specifies a more specific type than the type specified by theManagedObjectSource.-
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
-
ManagedObjectFunctionDependencyNodeImpl
public ManagedObjectFunctionDependencyNodeImpl(java.lang.String dependencyName, ManagedObjectSourceNode managedObjectSource, NodeContext context)Initiate.- Parameters:
dependencyName- Name of thisManagedObjectDependency.managedObjectSource- ParentManagedObjectSourceNode.context-NodeContext.
-
-
Method Detail
-
getNodeName
public java.lang.String getNodeName()
Description copied from interface:NodeObtains the name of theNode.- Specified by:
getNodeNamein interfaceNode- Returns:
- Name of the
Node.
-
getNodeType
public java.lang.String getNodeType()
Description copied from interface:NodeObtains theNodetype.- Specified by:
getNodeTypein interfaceNode- Returns:
Nodetype.
-
getLocation
public java.lang.String 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
public Node getParentNode()
Description copied from interface:Node- Specified by:
getParentNodein interfaceNode- Returns:
Nodecontaining thisNode.
-
getChildNodes
public Node[] 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:ManagedObjectFunctionDependencyNodeInitialises theManagedObjectFunctionDependencyNode.- Specified by:
initialisein interfaceManagedObjectFunctionDependencyNode
-
getManagedObjectDependencyName
public java.lang.String getManagedObjectDependencyName()
Description copied from interface:ManagedObjectDependencyObtains the name of thisManagedObjectDependency.- Specified by:
getManagedObjectDependencyNamein interfaceManagedObjectDependency- Returns:
- Name of this
ManagedObjectDependency.
-
setOverrideQualifier
public void setOverrideQualifier(java.lang.String qualifier)
Description copied from interface:ManagedObjectDependencyOverrides the qualifier specified by theManagedObjectSource.- Specified by:
setOverrideQualifierin interfaceManagedObjectDependency- Parameters:
qualifier- Qualifier to use for theManagedObjectDependency.
-
setSpecificType
public void setSpecificType(java.lang.String type)
Description copied from interface:ManagedObjectDependencySpecifies a more specific type than the type specified by the
ManagedObjectSource.Note: the type needs to be child of the actual type, otherwise it would cause
ClassCastExceptionon attempting to the use the resulting dependency. Hence the type can not be overridden but rather is able to be made more specific (particularly for auto wiring the dependency).- Specified by:
setSpecificTypein interfaceManagedObjectDependency- Parameters:
type- Type to use for theManagedObjectDependency.
-
loadObjectDependencyType
public ObjectDependencyType loadObjectDependencyType(CompileContext compileContext)
===================== ObjectDependencyNode ==============================- Specified by:
loadObjectDependencyTypein interfaceManagedObjectFunctionDependencyNode- Parameters:
compileContext-CompileContext.- Returns:
ObjectDependencyTypeornullwith issue reported to theCompilerIssues.
-
linkObjectNode
public boolean linkObjectNode(LinkObjectNode node)
Description copied from interface:LinkObjectNodeLinks the inputLinkObjectNodeto thisLinkObjectNode.- Specified by:
linkObjectNodein interfaceLinkObjectNode- Parameters:
node-LinkObjectNodeto link to thisLinkObjectNode.- Returns:
trueif linked.
-
getLinkedObjectNode
public LinkObjectNode getLinkedObjectNode()
Description copied from interface:LinkObjectNodeObtains theLinkObjectNodelinked to thisLinkObjectNode.- Specified by:
getLinkedObjectNodein interfaceLinkObjectNode- Returns:
LinkObjectNodelinked to thisLinkObjectNode.
-
-