Class CompileContextImpl
- java.lang.Object
-
- net.officefloor.compile.impl.structure.CompileContextImpl
-
- All Implemented Interfaces:
CompileContext
public class CompileContextImpl extends java.lang.Object implements CompileContext
CompileContext
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description CompileContextImpl(OfficeFloorMBeanRegistrator officeFloorMBeanRegistrator)
Instantiate.
-
Method Summary
-
-
-
Constructor Detail
-
CompileContextImpl
public CompileContextImpl(OfficeFloorMBeanRegistrator officeFloorMBeanRegistrator)
Instantiate.- Parameters:
officeFloorMBeanRegistrator
-OfficeFloorMBeanRegistrator
. May benull
.
-
-
Method Detail
-
registerPossibleMBean
public <T,S extends T> void registerPossibleMBean(java.lang.Class<T> type, java.lang.String name, S mbean)
Description copied from interface:CompileContext
Registers a possible MBean.- Specified by:
registerPossibleMBean
in 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:CompileContext
Obtains the existing or loads theManagedObjectType
for theManagedObjectSourceNode
.- Specified by:
getOrLoadManagedObjectType
in interfaceCompileContext
- Parameters:
managedObjectSourceNode
-ManagedObjectSourceNode
to obtain theManagedObjectType
.- Returns:
ManagedObjectType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadManagedObjectPoolType
public ManagedObjectPoolType getOrLoadManagedObjectPoolType(ManagedObjectPoolNode managedObjectPoolNode)
Description copied from interface:CompileContext
Obtains the existing or loads theManagedObjectPoolType
for theManagedObjectPoolNode
- Specified by:
getOrLoadManagedObjectPoolType
in interfaceCompileContext
- Parameters:
managedObjectPoolNode
-ManagedObjectPoolType
to obtain theManagedObjectType
.- Returns:
ManagedObjectPoolType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadFunctionNamespaceType
public FunctionNamespaceType getOrLoadFunctionNamespaceType(FunctionNamespaceNode namespaceNode)
Description copied from interface:CompileContext
Obtains the existing or loads theFunctionNamespaceType
for theFunctionNamespaceNode
.- Specified by:
getOrLoadFunctionNamespaceType
in interfaceCompileContext
- Parameters:
namespaceNode
-FunctionNamespaceNode
to obtain theFunctionNamespaceType
.- Returns:
FunctionNamespaceType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadSuppliedManagedObjectSourceType
public SuppliedManagedObjectSourceType getOrLoadSuppliedManagedObjectSourceType(SuppliedManagedObjectSourceNode suppliedManagedObjectSourceNode)
Description copied from interface:CompileContext
Obtains the existing or loads theSuppliedManagedObjectSourceType
for theSuppliedManagedObjectSourceNode
.- Specified by:
getOrLoadSuppliedManagedObjectSourceType
in interfaceCompileContext
- Parameters:
suppliedManagedObjectSourceNode
-SuppliedManagedObjectSourceNode
to obtain theSuppliedManagedObjectSourceType
.- Returns:
SuppliedManagedObjectSourceType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadInitialSupplierType
public InitialSupplierType getOrLoadInitialSupplierType(SupplierNode supplierNode)
Description copied from interface:CompileContext
Obtains the existing or loads theInitialSupplierType
for theSupplierNode
.- Specified by:
getOrLoadInitialSupplierType
in interfaceCompileContext
- Parameters:
supplierNode
-SupplierNode
to obtain theInitialSupplierType
.- Returns:
InitialSupplierType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadSupplierType
public SupplierType getOrLoadSupplierType(SupplierNode supplierNode)
Description copied from interface:CompileContext
Obtains the existing or loads theSupplierType
for theSupplierNode
.- Specified by:
getOrLoadSupplierType
in interfaceCompileContext
- Parameters:
supplierNode
-SupplierNode
to obtain theSupplierType
.- Returns:
SupplierType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadExecutiveType
public ExecutiveType getOrLoadExecutiveType(ExecutiveNode executiveNode)
Description copied from interface:CompileContext
Obtains the existing or loads theExecutiveType
for theExecutiveNode
.- Specified by:
getOrLoadExecutiveType
in interfaceCompileContext
- Parameters:
executiveNode
-ExecutiveNode
to obtain theExecutiveType
.- Returns:
ExecutiveType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadTeamType
public TeamType getOrLoadTeamType(TeamNode teamNode)
Description copied from interface:CompileContext
- Specified by:
getOrLoadTeamType
in interfaceCompileContext
- Parameters:
teamNode
-TeamNode
to obtain theTeamType
.- Returns:
TeamType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadAdministrationType
public <E,F extends java.lang.Enum<F>,G extends java.lang.Enum<G>> AdministrationType<E,F,G> getOrLoadAdministrationType(AdministrationNode administrationNode)
Description copied from interface:CompileContext
Obtains the existing or loads theAdministrationType
for theAdministrationNode
.- Specified by:
getOrLoadAdministrationType
in interfaceCompileContext
- Type Parameters:
E
- Extension interface type.F
-Flow
keyEnum
type.G
-Governance
keyEnum
type.- Parameters:
administrationNode
-AdministrationNode
to obtain theAdministrationType
.- Returns:
AdministrationType
ornull
with issue reported to theCompilerIssues
.
-
getOrLoadGovernanceType
public <I,F extends java.lang.Enum<F>> GovernanceType<I,F> getOrLoadGovernanceType(GovernanceNode governanceNode)
Description copied from interface:CompileContext
Obtains the existing or loads theGovernanceType
for theGovernanceNode
.- Specified by:
getOrLoadGovernanceType
in interfaceCompileContext
- Type Parameters:
I
- Extension interface type.F
- Flow keyEnum
type.- Parameters:
governanceNode
-GovernanceNode
to obtain theGovernanceType
.- Returns:
GovernanceType
ornull
with issue report to theCompilerIssues
.
-
-