Package org.testng.internal
Class DefaultListenerFactory
- java.lang.Object
-
- org.testng.internal.DefaultListenerFactory
-
- All Implemented Interfaces:
ITestNGListenerFactory
public final class DefaultListenerFactory extends java.lang.Object implements ITestNGListenerFactory
When noITestNGListenerFactory
implementations are available, TestNG defaults to this implementation for instantiating listeners.
-
-
Constructor Summary
Constructors Constructor Description DefaultListenerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITestNGListener
createListener(java.lang.Class<? extends ITestNGListener> listenerClass)
Create and return an instance of the listener class passed in parameter.
-
-
-
Method Detail
-
createListener
public ITestNGListener createListener(java.lang.Class<? extends ITestNGListener> listenerClass)
Description copied from interface:ITestNGListenerFactory
Create and return an instance of the listener class passed in parameter. Return null if you want to use the default factory.- Specified by:
createListener
in interfaceITestNGListenerFactory
-
-