Class SectionClassManagedFunctionSource.SectionManagedFunctionFactory
- java.lang.Object
-
- net.officefloor.frame.api.function.StaticManagedFunction<Indexed,Indexed>
-
- net.officefloor.plugin.section.clazz.SectionClassManagedFunctionSource.SectionManagedFunctionFactory
-
- All Implemented Interfaces:
ManagedFunction<Indexed,Indexed>
,ManagedFunctionFactory<Indexed,Indexed>
- Enclosing class:
- SectionClassManagedFunctionSource
public static class SectionClassManagedFunctionSource.SectionManagedFunctionFactory extends StaticManagedFunction<Indexed,Indexed>
ManagedFunctionFactory
for overridingClassManagedFunctionSource
behaviour.
-
-
Constructor Summary
Constructors Constructor Description SectionManagedFunctionFactory(java.lang.reflect.Method method, boolean isStatic, ManagedFunctionParameterFactory[] parameters)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
execute(ManagedFunctionContext<Indexed,Indexed> context)
Executes the function.java.lang.reflect.Method
getMethod()
Obtains theMethod
.ManagedFunctionParameterFactory[]
getParameterFactories()
Obtains theManagedFunctionParameterFactory
instances.-
Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
-
-
-
Constructor Detail
-
SectionManagedFunctionFactory
public SectionManagedFunctionFactory(java.lang.reflect.Method method, boolean isStatic, ManagedFunctionParameterFactory[] parameters)
Initiate.- Parameters:
method
-Method
for theManagedFunction
.isStatic
- Indicates if theMethod
is static.parameters
-ManagedFunctionParameterFactory
instances for the parameters of theMethod
.
-
-
Method Detail
-
getMethod
public java.lang.reflect.Method getMethod()
Obtains theMethod
.- Returns:
Method
.
-
getParameterFactories
public ManagedFunctionParameterFactory[] getParameterFactories()
Obtains theManagedFunctionParameterFactory
instances.- Returns:
ManagedFunctionParameterFactory
instances.
-
execute
public java.lang.Object execute(ManagedFunctionContext<Indexed,Indexed> context) throws java.lang.Throwable
Description copied from interface:ManagedFunction
Executes the function.- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Returns:
- Parameter for the next
ManagedFunction
. This allows stringingManagedFunction
instances together. - Throws:
java.lang.Throwable
- Indicating failure of theManagedFunction
.
-
-