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 Object
implements ManagedObjectFunctionDependencyNode
ManagedObjectFunctionDependencyNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.ManagedObjectFunctionDependencyNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionManagedObjectFunctionDependencyNodeImpl(String dependencyName, ManagedObjectSourceNode managedObjectSource, NodeContext context) Initiate. -
Method Summary
Modifier and TypeMethodDescriptionNode[]Obtains the childNodeinstances.Obtains theLinkObjectNodelinked to thisLinkObjectNode.Obtains the location of theNode.Obtains the name of thisManagedObjectDependency.Obtains the name of theNode.Obtains theNodetype.voidInitialises theManagedObjectFunctionDependencyNode.booleanIndicates if theNodehas been initialised.booleanlinkObjectNode(LinkObjectNode node) Links the inputLinkObjectNodeto thisLinkObjectNode.loadObjectDependencyType(CompileContext compileContext) ===================== ObjectDependencyNode ==============================voidsetOverrideQualifier(String qualifier) Overrides the qualifier specified by theManagedObjectSource.voidsetSpecificType(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, waitMethods inherited from interface net.officefloor.compile.internal.structure.Node
getQualifiedName, getQualifiedName
-
Constructor Details
-
ManagedObjectFunctionDependencyNodeImpl
public ManagedObjectFunctionDependencyNodeImpl(String dependencyName, ManagedObjectSourceNode managedObjectSource, NodeContext context) Initiate.- Parameters:
dependencyName- Name of thisManagedObjectDependency.managedObjectSource- ParentManagedObjectSourceNode.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:ManagedObjectFunctionDependencyNodeInitialises theManagedObjectFunctionDependencyNode.- Specified by:
initialisein interfaceManagedObjectFunctionDependencyNode
-
getManagedObjectDependencyName
Description copied from interface:ManagedObjectDependencyObtains the name of thisManagedObjectDependency.- Specified by:
getManagedObjectDependencyNamein interfaceManagedObjectDependency- Returns:
- Name of this
ManagedObjectDependency.
-
setOverrideQualifier
Description copied from interface:ManagedObjectDependencyOverrides the qualifier specified by theManagedObjectSource.- Specified by:
setOverrideQualifierin interfaceManagedObjectDependency- Parameters:
qualifier- Qualifier to use for theManagedObjectDependency.
-
setSpecificType
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
===================== ObjectDependencyNode ==============================- Specified by:
loadObjectDependencyTypein interfaceManagedObjectFunctionDependencyNode- Parameters:
compileContext-CompileContext.- Returns:
ObjectDependencyTypeornullwith issue reported to theCompilerIssues.
-
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.
-