public final class DefaultListenerFactory extends Object implements ITestNGListenerFactory
ITestNGListenerFactory implementations are available, TestNG defaults to this
implementation for instantiating listeners.| Constructor and Description |
|---|
DefaultListenerFactory(ITestObjectFactory objectFactory,
ITestContext context) |
| Modifier and Type | Method and Description |
|---|---|
ITestNGListener |
createListener(Class<? extends ITestNGListener> listenerClass)
Create and return an instance of the listener class passed in parameter.
|
public DefaultListenerFactory(ITestObjectFactory objectFactory, ITestContext context)
public ITestNGListener createListener(Class<? extends ITestNGListener> listenerClass)
ITestNGListenerFactorycreateListener in interface ITestNGListenerFactorylistenerClass - The class of listener to createCopyright © 2025. All rights reserved.