Package org.testng.internal
Class ObjectFactoryImpl
- java.lang.Object
-
- org.testng.internal.ObjectFactoryImpl
-
- All Implemented Interfaces:
IObjectFactory,ITestObjectFactory
public class ObjectFactoryImpl extends java.lang.Object implements IObjectFactory
Default factory for test creation. Note that if no constructor is found matching the specified parameters, this factory will try to invoke a constructor that takes in a string object- Since:
- 5.6
-
-
Constructor Summary
Constructors Constructor Description ObjectFactoryImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectnewInstance(java.lang.reflect.Constructor constructor, java.lang.Object... params)
-
-
-
Method Detail
-
newInstance
public java.lang.Object newInstance(java.lang.reflect.Constructor constructor, java.lang.Object... params)- Specified by:
newInstancein interfaceIObjectFactory
-
-