| Package | Description |
|---|---|
| org.testng | |
| org.testng.internal | |
| org.testng.xml |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IObjectFactory
Factory used to create all test instances.
|
interface |
IObjectFactory2
Factory used to create all test instances.
|
| Modifier and Type | Field and Description |
|---|---|
private ITestObjectFactory |
TestNG.m_objectFactory |
private ITestObjectFactory |
SuiteRunner.m_objectFactory |
| Modifier and Type | Method and Description |
|---|---|
void |
TestNG.setObjectFactory(ITestObjectFactory factory) |
void |
SuiteRunner.setObjectFactory(ITestObjectFactory objectFactory) |
| Modifier and Type | Class and Description |
|---|---|
class |
ObjectFactoryImpl
Default factory for test creation.
|
| Modifier and Type | Field and Description |
|---|---|
(package private) ITestObjectFactory |
Configuration.m_objectFactory |
private ITestObjectFactory |
ClassImpl.m_objectFactory |
| Modifier and Type | Method and Description |
|---|---|
ITestObjectFactory |
IConfiguration.getObjectFactory() |
ITestObjectFactory |
Configuration.getObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
ClassHelper.createInstance(java.lang.Class<?> declaringClass,
java.util.Map<java.lang.Class,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder finder,
ITestObjectFactory objectFactory)
Create an instance for the given class.
|
protected IClass |
BaseClassFinder.findOrCreateIClass(ITestContext context,
java.lang.Class cls,
XmlClass xmlClass,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
void |
IConfiguration.setObjectFactory(ITestObjectFactory m_objectFactory) |
void |
Configuration.setObjectFactory(ITestObjectFactory factory) |
| Constructor and Description |
|---|
ClassImpl(ITestContext context,
java.lang.Class cls,
XmlClass xmlClass,
java.lang.Object instance,
java.util.Map<java.lang.Class,IClass> classes,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
ITestObjectFactory objectFactory) |
| Modifier and Type | Field and Description |
|---|---|
private ITestObjectFactory |
XmlSuite.m_objectFactory |
| Modifier and Type | Method and Description |
|---|---|
ITestObjectFactory |
XmlSuite.getObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
XmlSuite.setObjectFactory(ITestObjectFactory objectFactory) |