Package org.testng.internal
Class DefaultListenerFactory
java.lang.Object
org.testng.internal.DefaultListenerFactory
- All Implemented Interfaces:
ITestNGListenerFactory
When no
ITestNGListenerFactory
implementations are available, TestNG defaults to this
implementation for instantiating listeners.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateListener
(Class<? extends ITestNGListener> listenerClass) Create and return an instance of the listener class passed in parameter.
-
Constructor Details
-
DefaultListenerFactory
public DefaultListenerFactory()
-
-
Method Details
-
createListener
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
- Parameters:
listenerClass
- The class of listener to create- Returns:
- The created listener
-