1package org.testng; 2 3import java.lang.reflect.Constructor; 4 5/** 6 * Factory used to create all test instances. This factory is passed the constructor 7 * along with the parameters that TestNG calculated based on the environment 8 * (@Parameters, etc...). 9 * 10 * @see IObjectFactory2 11 * 12 * @author Hani Suleiman 13 * @since 5.6 14 */ 15public interface IObjectFactory extends ITestObjectFactory { 16 Object newInstance(Constructor constructor, Object... params); 17} 18