Class MethodFunctionFactory
- java.lang.Object
-
- net.officefloor.plugin.clazz.method.MethodFunctionFactory
-
- All Implemented Interfaces:
ManagedFunctionFactory<Indexed,Indexed>
public class MethodFunctionFactory extends java.lang.Object implements ManagedFunctionFactory<Indexed,Indexed>
ManagedFunctionFactory
for theMethodFunction
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MethodFunctionFactory(MethodObjectFactory methodObjectInstanceFactory, java.lang.reflect.Method method, ClassDependencyFactory[] parameters)
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodFunction
createManagedFunction()
Creates theManagedFunction
.java.lang.reflect.Method
getMethod()
Obtains theMethod
.void
setMethodReturnTranslator(MethodReturnTranslator<java.lang.Object,java.lang.Object> returnTranslator)
Specifies theMethodReturnTranslator
.
-
-
-
Constructor Detail
-
MethodFunctionFactory
public MethodFunctionFactory(MethodObjectFactory methodObjectInstanceFactory, java.lang.reflect.Method method, ClassDependencyFactory[] parameters)
Initiate.- Parameters:
methodObjectInstanceFactory
-MethodObjectFactory
. Will benull
if staticMethod
.method
-Method
to invoke for theManagedFunction
.parameters
-ClassDependencyFactory
instances.
-
-
Method Detail
-
setMethodReturnTranslator
public void setMethodReturnTranslator(MethodReturnTranslator<java.lang.Object,java.lang.Object> returnTranslator)
Specifies theMethodReturnTranslator
.- Parameters:
returnTranslator
-MethodReturnTranslator
.
-
getMethod
public java.lang.reflect.Method getMethod()
Obtains theMethod
.- Returns:
Method
.
-
createManagedFunction
public MethodFunction createManagedFunction()
Description copied from interface:ManagedFunctionFactory
Creates theManagedFunction
.- Specified by:
createManagedFunction
in interfaceManagedFunctionFactory<Indexed,Indexed>
- Returns:
ManagedFunction
.
-
-