Class ManagedObjectPoolNodeImpl
java.lang.Object
net.officefloor.compile.impl.structure.ManagedObjectPoolNodeImpl
- All Implemented Interfaces:
LinkPoolNode,ManagedObjectPoolNode,Node,PropertyConfigurable,OfficeManagedObjectPool,OfficeFloorManagedObjectPool,SectionManagedObjectPool
ManagedObjectPoolNode implementation.- Author:
- Daniel Sagenschneider
-
Field Summary
Fields inherited from interface net.officefloor.compile.internal.structure.ManagedObjectPoolNode
TYPE -
Constructor Summary
ConstructorsConstructorDescriptionManagedObjectPoolNodeImpl(String managedObjectPoolName, SectionNode containingSectionNode, OfficeNode containingOfficeNode, OfficeFloorNode containingOfficeFloorNode, NodeContext context) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, String value) ================== PropertyConfigurable ====================voidbuildManagedObjectPool(ManagedObjectBuilder<?> builder, ManagedObjectType<?> managedObjectType, CompileContext compileContext) BuildsManagedObjectPoolfor thisManagedObjectPoolNode.Node[]Obtains the childNodeinstances.Obtains theLinkPoolNodelinked to thisLinkPoolNode.Obtains the location of theNode.Obtains the name of theNode.Obtains theNodetype.Obtains the name of thisOfficeFloorManagedObjectPool.Obtains the name of thisOfficeManagedObjectPool.Obtains the name of thisSectionManagedObjectPool.voidinitialise(String managedObjectPoolSourceClassName, ManagedObjectPoolSource managedObjectPoolSource) Initialises theManagedObjectPoolNode.booleanIndicates if theNodehas been initialised.booleanlinkPoolNode(LinkPoolNode node) Links the inputLinkPoolNodeto thisLinkPoolNode.loadManagedObjectPoolType(boolean isLoadingType) Loads theManagedObjectPoolType.booleansourceManagedObjectPool(CompileContext compileContext) Sources theManagedObjectPool.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
-
ManagedObjectPoolNodeImpl
public ManagedObjectPoolNodeImpl(String managedObjectPoolName, SectionNode containingSectionNode, OfficeNode containingOfficeNode, OfficeFloorNode containingOfficeFloorNode, NodeContext context) Instantiate.- Parameters:
managedObjectPoolName- Name of thisManagedObjectPoolNode.containingSectionNode- ContainingSectionNode.nullif contained in theOfficeorOfficeFloor.containingOfficeNode- ContainingOfficeNode.nullif contained in theOfficeFloor.containingOfficeFloorNode- ContainingOfficeFloorNode.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(String managedObjectPoolSourceClassName, ManagedObjectPoolSource managedObjectPoolSource) Description copied from interface:ManagedObjectPoolNodeInitialises theManagedObjectPoolNode.- Specified by:
initialisein interfaceManagedObjectPoolNode- Parameters:
managedObjectPoolSourceClassName- Class name of theManagedObjectPoolSource.managedObjectPoolSource- Optional instantiatedManagedObjectPoolSource. May benull.
-
getOfficeFloorManagedObjectPoolName
Description copied from interface:OfficeFloorManagedObjectPoolObtains the name of thisOfficeFloorManagedObjectPool.- Specified by:
getOfficeFloorManagedObjectPoolNamein interfaceOfficeFloorManagedObjectPool- Returns:
- Name of this
OfficeFloorManagedObjectPool.
-
getOfficeManagedObjectPoolName
Description copied from interface:OfficeManagedObjectPoolObtains the name of thisOfficeManagedObjectPool.- Specified by:
getOfficeManagedObjectPoolNamein interfaceOfficeManagedObjectPool- Returns:
- Name of this
OfficeManagedObjectPool.
-
getSectionManagedObjectPoolName
Description copied from interface:SectionManagedObjectPoolObtains the name of thisSectionManagedObjectPool.- Specified by:
getSectionManagedObjectPoolNamein interfaceSectionManagedObjectPool- Returns:
- Name of this
SectionManagedObjectPool.
-
addProperty
================== PropertyConfigurable ====================- Specified by:
addPropertyin interfacePropertyConfigurable- Parameters:
name- Name ofProperty.value- Value ofProperty.
-
loadManagedObjectPoolType
Description copied from interface:ManagedObjectPoolNodeLoads theManagedObjectPoolType.- Specified by:
loadManagedObjectPoolTypein interfaceManagedObjectPoolNode- Parameters:
isLoadingType- Indicates if using to load type.- Returns:
ManagedObjectPoolTypeornullif issue loading with issue reported to theCompilerIssues.
-
sourceManagedObjectPool
Description copied from interface:ManagedObjectPoolNodeSources theManagedObjectPool.- Specified by:
sourceManagedObjectPoolin interfaceManagedObjectPoolNode- Parameters:
compileContext-CompileContext.- Returns:
trueif successfully sourced. Otherwise,falsewith issues reported to theCompilerIssues.
-
buildManagedObjectPool
public void buildManagedObjectPool(ManagedObjectBuilder<?> builder, ManagedObjectType<?> managedObjectType, CompileContext compileContext) Description copied from interface:ManagedObjectPoolNodeBuildsManagedObjectPoolfor thisManagedObjectPoolNode.- Specified by:
buildManagedObjectPoolin interfaceManagedObjectPoolNode- Parameters:
builder-ManagedObjectBuilder.managedObjectType-ManagedObjectTypeof theManagedObjectSourcebeing pooled.compileContext-CompileContext.
-
linkPoolNode
Description copied from interface:LinkPoolNodeLinks the inputLinkPoolNodeto thisLinkPoolNode.- Specified by:
linkPoolNodein interfaceLinkPoolNode- Parameters:
node-LinkPoolNodeto link to thisLinkPoolNode.- Returns:
trueif linked.
-
getLinkedPoolNode
Description copied from interface:LinkPoolNodeObtains theLinkPoolNodelinked to thisLinkPoolNode.- Specified by:
getLinkedPoolNodein interfaceLinkPoolNode- Returns:
LinkPoolNodelinked to thisLinkPoolNode.
-