Class DefaultConstructorMethodObjectInstanceFactory
- java.lang.Object
-
- net.officefloor.plugin.managedfunction.clazz.DefaultConstructorMethodObjectInstanceFactory
-
- All Implemented Interfaces:
MethodObjectInstanceFactory
public class DefaultConstructorMethodObjectInstanceFactory extends java.lang.Object implements MethodObjectInstanceFactory
MethodObjectInstanceFactory
using the defaultConstructor
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description DefaultConstructorMethodObjectInstanceFactory(java.lang.Class<?> clazz)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
createInstance()
Creates theObject
instance to invoke theMethod
on.
-
-
-
Constructor Detail
-
DefaultConstructorMethodObjectInstanceFactory
public DefaultConstructorMethodObjectInstanceFactory(java.lang.Class<?> clazz) throws java.lang.Exception
Instantiate.- Parameters:
clazz
-Class
to instantiate via defaultConstructor
.- Throws:
java.lang.Exception
- If fails to obtain defaultConstructor
.
-
-
Method Detail
-
createInstance
public java.lang.Object createInstance() throws java.lang.Exception
Description copied from interface:MethodObjectInstanceFactory
Creates theObject
instance to invoke theMethod
on.- Specified by:
createInstance
in interfaceMethodObjectInstanceFactory
- Returns:
Object
instance to invoke theMethod
on.- Throws:
java.lang.Exception
- If fails to create the instance.
-
-