Top Description Constructors Methods
org.testng.internal.objects

public Class ObjectFactoryImpl

extends Object
implements ITestObjectFactory
Class Inheritance
All Implemented Interfaces
org.testng.ITestObjectFactory
Imports
java.lang.reflect.Constructor, org.testng.ITestObjectFactory, .TestNGException

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

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> T
newInstance(Constructor<T> constructor, Object... params)

Overrides default org.testng.ITestObjectFactory.newInstance.

private static <T> T
tryOtherConstructor(Class<T> declaringClass)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ObjectFactoryImplback to summary
public ObjectFactoryImpl()

Method Detail

newInstanceback to summary
public <T> T newInstance(Constructor<T> constructor, Object... params)

Overrides default org.testng.ITestObjectFactory.newInstance.

Annotations
@Override
tryOtherConstructorback to summary
private static <T> T tryOtherConstructor(Class<T> declaringClass)