Class MethodManagedFunctionBuilder
- java.lang.Object
-
- net.officefloor.plugin.clazz.method.MethodManagedFunctionBuilder
-
public class MethodManagedFunctionBuilder extends java.lang.Object
Builder to wrap execution of aMethod
with aManagedFunction
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MethodManagedFunctionBuilder(java.lang.Class<?> clazz, FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagedFunctionTypeBuilder<Indexed,Indexed>
buildMethod(java.lang.reflect.Method method)
Builds theManagedFunction
.ManagedFunctionTypeBuilder<Indexed,Indexed>
buildMethod(java.lang.reflect.Method method, MethodObjectManufacturer methodObjectInstanceManufacturer)
Builds theManagedFunction
.
-
-
-
Constructor Detail
-
MethodManagedFunctionBuilder
public MethodManagedFunctionBuilder(java.lang.Class<?> clazz, FunctionNamespaceBuilder namespaceBuilder, ManagedFunctionSourceContext context)
Instantiate.- Parameters:
clazz
-Class
being interrogated for injection.namespaceBuilder
-FunctionNamespaceBuilder
.context
-ManagedFunctionSourceContext
.
-
-
Method Detail
-
buildMethod
public ManagedFunctionTypeBuilder<Indexed,Indexed> buildMethod(java.lang.reflect.Method method) throws java.lang.Exception
Builds theManagedFunction
.- Parameters:
method
-Method
for theManagedFunction
.- Returns:
ManagedFunctionTypeBuilder
for theMethod
.- Throws:
java.lang.Exception
- If fails to create theManagedFunction
from theMethod
.
-
buildMethod
public ManagedFunctionTypeBuilder<Indexed,Indexed> buildMethod(java.lang.reflect.Method method, MethodObjectManufacturer methodObjectInstanceManufacturer) throws java.lang.Exception
Builds theManagedFunction
.- Parameters:
method
-Method
for theManagedFunction
.methodObjectInstanceManufacturer
-MethodObjectManufacturer
to customise the instantiation of theObject
to invoke theMethod
against.- Returns:
ManagedFunctionTypeBuilder
for theMethod
.- Throws:
java.lang.Exception
- If fails to create theManagedFunction
from theMethod
.
-
-