public final class DefaultListenerFactory extends java.lang.Object implements ITestNGListenerFactory
ITestNGListenerFactory
implementations are available, TestNG defaults to this
implementation for instantiating listeners.Constructor and Description |
---|
DefaultListenerFactory() |
Modifier and Type | Method and Description |
---|---|
ITestNGListener |
createListener(java.lang.Class<? extends ITestNGListener> listenerClass)
Create and return an instance of the listener class passed in parameter.
|
public ITestNGListener createListener(java.lang.Class<? extends ITestNGListener> listenerClass)
ITestNGListenerFactory
createListener
in interface ITestNGListenerFactory