ITestNGListenerFactory (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 ITestNGListenerFactory

    public interface ITestNGListenerFactory

A factory used to create instances of ITestNGListener. Users can implement this interface in any of their test classes but there can be only one such instance.

Method Summary
`ITestNGListener` | `createListener(java.lang.Class<? extends ITestNGListener> listenerClass)` Create and return an instance of the listener class passed in parameter.

Method Detail

### createListener

    ITestNGListener createListener(java.lang.Class<? extends ITestNGListener> listenerClass)

  Create and return an instance of the listener class passed in parameter. Return null if you want to use the default factory.

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

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