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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultListenerFactory
(ITestObjectFactory objectFactory, ITestContext context) -
Method Summary
Modifier and TypeMethodDescriptioncreateListener
(Class<? extends ITestNGListener> listenerClass) Create and return an instance of the listener class passed in parameter.
-
Field Details
-
m_objectFactory
-
context
-
-
Constructor Details
-
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
-