net.thucydides.core.csv
Class InstanceBuilder

Package class diagram package InstanceBuilder
java.lang.Object
  extended by net.thucydides.core.csv.InstanceBuilder

public final class InstanceBuilder
extends Object

Helper class for finding and invoking constructors.


Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstanceOf

public static <T> T newInstanceOf(Class<T> clazz,
                                  Object... constructorArgs)
                       throws InstantiationException,
                              IllegalAccessException,
                              InvocationTargetException
Throws:
InstantiationException
IllegalAccessException
InvocationTargetException

invokeConstructorFor

public static <T> T invokeConstructorFor(Class<T> clazz,
                                         Object[] constructorArgs)
                              throws InvocationTargetException,
                                     IllegalAccessException,
                                     InstantiationException
Throws:
InvocationTargetException
IllegalAccessException
InstantiationException

setPropertyValue

public void setPropertyValue(String property,
                             String value)

inObject

public static <T> InstanceBuilder inObject(T newObject)


Copyright © 2011-2012 Wakaleo Consulting. All Rights Reserved.