Class CompileContextImpl
java.lang.Object
net.officefloor.compile.impl.structure.CompileContextImpl
- All Implemented Interfaces:
CompileContext
CompileContext implementation.- Author:
- Daniel Sagenschneider
-
Constructor Summary
ConstructorsConstructorDescriptionCompileContextImpl(OfficeFloorMBeanRegistrator officeFloorMBeanRegistrator) Instantiate. -
Method Summary
Modifier and TypeMethodDescription<E,F extends Enum<F>, G extends Enum<G>>
AdministrationType<E,F, G> getOrLoadAdministrationType(AdministrationNode administrationNode) Obtains the existing or loads theAdministrationTypefor theAdministrationNode.getOrLoadExecutiveType(ExecutiveNode executiveNode) Obtains the existing or loads theExecutiveTypefor theExecutiveNode.getOrLoadFunctionNamespaceType(FunctionNamespaceNode namespaceNode) Obtains the existing or loads theFunctionNamespaceTypefor theFunctionNamespaceNode.<I,F extends Enum<F>>
GovernanceType<I,F> getOrLoadGovernanceType(GovernanceNode governanceNode) Obtains the existing or loads theGovernanceTypefor theGovernanceNode.getOrLoadInitialSupplierType(SupplierNode supplierNode) Obtains the existing or loads theInitialSupplierTypefor theSupplierNode.getOrLoadManagedObjectPoolType(ManagedObjectPoolNode managedObjectPoolNode) Obtains the existing or loads theManagedObjectPoolTypefor theManagedObjectPoolNodegetOrLoadManagedObjectType(ManagedObjectSourceNode managedObjectSourceNode) Obtains the existing or loads theManagedObjectTypefor theManagedObjectSourceNode.getOrLoadSuppliedManagedObjectSourceType(SuppliedManagedObjectSourceNode suppliedManagedObjectSourceNode) Obtains the existing or loads theSuppliedManagedObjectSourceTypefor theSuppliedManagedObjectSourceNode.getOrLoadSupplierType(SupplierNode supplierNode) Obtains the existing or loads theSupplierTypefor theSupplierNode.getOrLoadTeamType(TeamNode teamNode) <T,S extends T>
voidregisterPossibleMBean(Class<T> type, String name, S mbean) Registers a possible MBean.
-
Constructor Details
-
CompileContextImpl
Instantiate.- Parameters:
officeFloorMBeanRegistrator-OfficeFloorMBeanRegistrator. May benull.
-
-
Method Details
-
registerPossibleMBean
Description copied from interface:CompileContextRegisters a possible MBean.- Specified by:
registerPossibleMBeanin interfaceCompileContext- Type Parameters:
T- Type of MBean.S- MBean type.- Parameters:
type- Type of MBean.name- Name of MBean.mbean- MBean.
-
getOrLoadManagedObjectType
public ManagedObjectType<?> getOrLoadManagedObjectType(ManagedObjectSourceNode managedObjectSourceNode) Description copied from interface:CompileContextObtains the existing or loads theManagedObjectTypefor theManagedObjectSourceNode.- Specified by:
getOrLoadManagedObjectTypein interfaceCompileContext- Parameters:
managedObjectSourceNode-ManagedObjectSourceNodeto obtain theManagedObjectType.- Returns:
ManagedObjectTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadManagedObjectPoolType
public ManagedObjectPoolType getOrLoadManagedObjectPoolType(ManagedObjectPoolNode managedObjectPoolNode) Description copied from interface:CompileContextObtains the existing or loads theManagedObjectPoolTypefor theManagedObjectPoolNode- Specified by:
getOrLoadManagedObjectPoolTypein interfaceCompileContext- Parameters:
managedObjectPoolNode-ManagedObjectPoolTypeto obtain theManagedObjectType.- Returns:
ManagedObjectPoolTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadFunctionNamespaceType
Description copied from interface:CompileContextObtains the existing or loads theFunctionNamespaceTypefor theFunctionNamespaceNode.- Specified by:
getOrLoadFunctionNamespaceTypein interfaceCompileContext- Parameters:
namespaceNode-FunctionNamespaceNodeto obtain theFunctionNamespaceType.- Returns:
FunctionNamespaceTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadSuppliedManagedObjectSourceType
public SuppliedManagedObjectSourceType getOrLoadSuppliedManagedObjectSourceType(SuppliedManagedObjectSourceNode suppliedManagedObjectSourceNode) Description copied from interface:CompileContextObtains the existing or loads theSuppliedManagedObjectSourceTypefor theSuppliedManagedObjectSourceNode.- Specified by:
getOrLoadSuppliedManagedObjectSourceTypein interfaceCompileContext- Parameters:
suppliedManagedObjectSourceNode-SuppliedManagedObjectSourceNodeto obtain theSuppliedManagedObjectSourceType.- Returns:
SuppliedManagedObjectSourceTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadInitialSupplierType
Description copied from interface:CompileContextObtains the existing or loads theInitialSupplierTypefor theSupplierNode.- Specified by:
getOrLoadInitialSupplierTypein interfaceCompileContext- Parameters:
supplierNode-SupplierNodeto obtain theInitialSupplierType.- Returns:
InitialSupplierTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadSupplierType
Description copied from interface:CompileContextObtains the existing or loads theSupplierTypefor theSupplierNode.- Specified by:
getOrLoadSupplierTypein interfaceCompileContext- Parameters:
supplierNode-SupplierNodeto obtain theSupplierType.- Returns:
SupplierTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadExecutiveType
Description copied from interface:CompileContextObtains the existing or loads theExecutiveTypefor theExecutiveNode.- Specified by:
getOrLoadExecutiveTypein interfaceCompileContext- Parameters:
executiveNode-ExecutiveNodeto obtain theExecutiveType.- Returns:
ExecutiveTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadTeamType
Description copied from interface:CompileContext- Specified by:
getOrLoadTeamTypein interfaceCompileContext- Parameters:
teamNode-TeamNodeto obtain theTeamType.- Returns:
TeamTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadAdministrationType
public <E,F extends Enum<F>, AdministrationType<E,G extends Enum<G>> F, getOrLoadAdministrationTypeG> (AdministrationNode administrationNode) Description copied from interface:CompileContextObtains the existing or loads theAdministrationTypefor theAdministrationNode.- Specified by:
getOrLoadAdministrationTypein interfaceCompileContext- Type Parameters:
E- Extension interface type.F-FlowkeyEnumtype.G-GovernancekeyEnumtype.- Parameters:
administrationNode-AdministrationNodeto obtain theAdministrationType.- Returns:
AdministrationTypeornullwith issue reported to theCompilerIssues.
-
getOrLoadGovernanceType
public <I,F extends Enum<F>> GovernanceType<I,F> getOrLoadGovernanceType(GovernanceNode governanceNode) Description copied from interface:CompileContextObtains the existing or loads theGovernanceTypefor theGovernanceNode.- Specified by:
getOrLoadGovernanceTypein interfaceCompileContext- Type Parameters:
I- Extension interface type.F- Flow keyEnumtype.- Parameters:
governanceNode-GovernanceNodeto obtain theGovernanceType.- Returns:
GovernanceTypeornullwith issue report to theCompilerIssues.
-