Class FunctionNamespaceTypeImpl
- java.lang.Object
-
- net.officefloor.compile.impl.managedfunction.FunctionNamespaceTypeImpl
-
- All Implemented Interfaces:
FunctionNamespaceType
,FunctionNamespaceBuilder
public class FunctionNamespaceTypeImpl extends java.lang.Object implements FunctionNamespaceType, FunctionNamespaceBuilder
FunctionNamespaceType
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description FunctionNamespaceTypeImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <M extends java.lang.Enum<M>,F extends java.lang.Enum<F>>
ManagedFunctionTypeBuilder<M,F>addManagedFunctionType(java.lang.String taskName, java.lang.Class<M> objectKeysClass, java.lang.Class<F> flowKeysClass)
Adds aManagedFunctionTypeBuilder
to thisFunctionNamespaceBuilder
definition.ManagedFunctionType<?,?>[]
getManagedFunctionTypes()
Obtains theManagedFunctionType
definitions.
-
-
-
Method Detail
-
addManagedFunctionType
public <M extends java.lang.Enum<M>,F extends java.lang.Enum<F>> ManagedFunctionTypeBuilder<M,F> addManagedFunctionType(java.lang.String taskName, java.lang.Class<M> objectKeysClass, java.lang.Class<F> flowKeysClass)
Description copied from interface:FunctionNamespaceBuilder
Adds aManagedFunctionTypeBuilder
to thisFunctionNamespaceBuilder
definition.- Specified by:
addManagedFunctionType
in interfaceFunctionNamespaceBuilder
- Type Parameters:
M
- Dependency key type.F
- Flow key type.- Parameters:
taskName
- Name of theManagedFunction
.objectKeysClass
-Enum
providing the keys of the dependentObject
instances required by theManagedFunctionTypeBuilder
. This may benull
if theManagedFunctionTypeBuilder
requires no dependentObject
instances or they areIndexed
.flowKeysClass
-Enum
providing the keys of theFlow
instigated by theManagedFunctionTypeBuilder
. This may benull
if theManagedFunctionTypeBuilder
does not instigateFlow
instances or they areIndexed
.- Returns:
ManagedFunctionTypeBuilder
to providetype definition
of the addedManagedFunction
.
-
getManagedFunctionTypes
public ManagedFunctionType<?,?>[] getManagedFunctionTypes()
Description copied from interface:FunctionNamespaceType
Obtains theManagedFunctionType
definitions.- Specified by:
getManagedFunctionTypes
in interfaceFunctionNamespaceType
- Returns:
ManagedFunctionType
definitions.
-
-