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>
ManagedFunctionFactoryfor 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 MethodFunctioncreateManagedFunction()Creates theManagedFunction.java.lang.reflect.MethodgetMethod()Obtains theMethod.voidsetMethodReturnTranslator(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 benullif staticMethod.method-Methodto invoke for theManagedFunction.parameters-ClassDependencyFactoryinstances.
-
-
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:ManagedFunctionFactoryCreates theManagedFunction.- Specified by:
createManagedFunctionin interfaceManagedFunctionFactory<Indexed,Indexed>- Returns:
ManagedFunction.
-
-