public final class InstanceBuilder extends Object
Modifier and Type | Method and 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) |
public static <T> T newInstanceOf(Class<T> clazz, Object... constructorArgs) throws InstantiationException, IllegalAccessException, InvocationTargetException
public static <T> T invokeConstructorFor(Class<T> clazz, Object[] constructorArgs) throws InvocationTargetException, IllegalAccessException, InstantiationException
public static <T> InstanceBuilder inObject(T newObject)
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.