Package org.testng.internal.objects
Class ObjectFactoryImpl
java.lang.Object
org.testng.internal.objects.ObjectFactoryImpl
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescription<T> T
newInstance
(Constructor<T> constructor, Object... params) private static <T> T
tryOtherConstructor
(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
-
Constructor Details
-
ObjectFactoryImpl
public ObjectFactoryImpl()
-
-
Method Details
-
newInstance
- Specified by:
newInstance
in interfaceITestObjectFactory
-
tryOtherConstructor
-