Class MethodManagedFunctionBuilder
- java.lang.Object
-
- net.officefloor.plugin.clazz.method.MethodManagedFunctionBuilder
-
public class MethodManagedFunctionBuilder extends java.lang.ObjectBuilder to wrap execution of aMethodwith 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-Classbeing 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-Methodfor theManagedFunction.- Returns:
ManagedFunctionTypeBuilderfor theMethod.- Throws:
java.lang.Exception- If fails to create theManagedFunctionfrom theMethod.
-
buildMethod
public ManagedFunctionTypeBuilder<Indexed,Indexed> buildMethod(java.lang.reflect.Method method, MethodObjectManufacturer methodObjectInstanceManufacturer) throws java.lang.Exception
Builds theManagedFunction.- Parameters:
method-Methodfor theManagedFunction.methodObjectInstanceManufacturer-MethodObjectManufacturerto customise the instantiation of theObjectto invoke theMethodagainst.- Returns:
ManagedFunctionTypeBuilderfor theMethod.- Throws:
java.lang.Exception- If fails to create theManagedFunctionfrom theMethod.
-
-