IObjectFactory2 (TestNG)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.testng
Interface IObjectFactory2

All Superinterfaces:
  ITestObjectFactory, java.io.Serializable

    public interface IObjectFactory2

extends ITestObjectFactory

Factory used to create all test instances. This object factory only receives the class in parameter.

Since:
  5.14.6
Author:
  Cedric Beust
See Also:
  `IObjectFactory`

Method Summary
`java.lang.Object` | `newInstance(java.lang.Class<?> cls)`

Method Detail

### newInstance

    java.lang.Object newInstance(java.lang.Class<?> cls)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD