Package net.thucydides.core.csv
Class InstanceBuilder
- java.lang.Object
-
- net.thucydides.core.csv.InstanceBuilder
-
public final class InstanceBuilder extends Object
Helper class for finding and invoking constructors.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> InstanceBuilder
inObject(T newObject)
static <T> T
invokeConstructorFor(Class<T> clazz, Object[] constructorArgs)
static <T> T
newInstanceOf(Class<T> clazz, Object... constructorArgs)
void
setPropertyValue(String property, String value)
-
-
-
Method Detail
-
newInstanceOf
public static <T> T newInstanceOf(Class<T> clazz, Object... constructorArgs) throws InstantiationException, IllegalAccessException, InvocationTargetException
-
invokeConstructorFor
public static <T> T invokeConstructorFor(Class<T> clazz, Object[] constructorArgs) throws InvocationTargetException, IllegalAccessException, InstantiationException
-
inObject
public static <T> InstanceBuilder inObject(T newObject)
-
-