Package org.testng.internal.objects
Class ObjectFactoryImpl
- java.lang.Object
-
- org.testng.internal.objects.ObjectFactoryImpl
-
- All Implemented Interfaces:
ITestObjectFactory
public class ObjectFactoryImpl extends java.lang.Object implements ITestObjectFactory
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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
newInstance(java.lang.reflect.Constructor<T> constructor, java.lang.Object... params)
private static <T> T
tryOtherConstructor(java.lang.Class<T> declaringClass)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testng.ITestObjectFactory
newInstance, newInstance
-
-
-
-
Method Detail
-
newInstance
public <T> T newInstance(java.lang.reflect.Constructor<T> constructor, java.lang.Object... params)
- Specified by:
newInstance
in interfaceITestObjectFactory
-
tryOtherConstructor
private static <T> T tryOtherConstructor(java.lang.Class<T> declaringClass)
-
-