Class DefaultMethodObjectFactory
- java.lang.Object
-
- net.officefloor.plugin.clazz.method.DefaultMethodObjectFactory
-
- All Implemented Interfaces:
MethodObjectFactory
public class DefaultMethodObjectFactory extends java.lang.Object implements MethodObjectFactory
DefaultMethodObjectFactory
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description DefaultMethodObjectFactory(ClassObjectFactory objectFactory)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createInstance(ManagedFunctionContext<Indexed,Indexed> context)
Creates theObject
instance to invoke theMethod
on.
-
-
-
Constructor Detail
-
DefaultMethodObjectFactory
public DefaultMethodObjectFactory(ClassObjectFactory objectFactory)
Instantiate.- Parameters:
objectFactory
-ClassObjectFactory
.
-
-
Method Detail
-
createInstance
public java.lang.Object createInstance(ManagedFunctionContext<Indexed,Indexed> context) throws java.lang.Throwable
Description copied from interface:MethodObjectFactory
Creates theObject
instance to invoke theMethod
on.- Specified by:
createInstance
in interfaceMethodObjectFactory
- Parameters:
context
-ManagedFunctionContext
.- Returns:
Object
instance to invoke theMethod
on.- Throws:
java.lang.Throwable
- If fails to create the instance.
-
-