Package org.testng.internal
Class Configuration
- java.lang.Object
-
- org.testng.internal.Configuration
-
- All Implemented Interfaces:
IConfiguration
public class Configuration extends java.lang.Object implements IConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
alwaysRunListeners
private IAnnotationFinder
m_annotationFinder
private IConfigurable
m_configurable
private java.util.Map<java.lang.Class<? extends IConfigurationListener>,IConfigurationListener>
m_configurationListeners
private java.util.Map<java.lang.Class<? extends IExecutionListener>,IExecutionListener>
m_executionListeners
private IExecutorFactory
m_executorFactory
private IHookable
m_hookable
private ITestObjectFactory
m_objectFactory
-
Constructor Summary
Constructors Constructor Description Configuration()
Configuration(IAnnotationFinder finder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConfigurationListener(IConfigurationListener cl)
boolean
addExecutionListenerIfAbsent(IExecutionListener l)
boolean
alwaysRunListeners()
IAnnotationFinder
getAnnotationFinder()
IConfigurable
getConfigurable()
java.util.List<IConfigurationListener>
getConfigurationListeners()
java.util.List<IExecutionListener>
getExecutionListeners()
IExecutorFactory
getExecutorFactory()
IHookable
getHookable()
ITestObjectFactory
getObjectFactory()
private void
init(IAnnotationFinder finder)
void
setAlwaysRunListeners(boolean alwaysRunListeners)
void
setAnnotationFinder(IAnnotationFinder finder)
void
setConfigurable(IConfigurable c)
void
setExecutorFactory(IExecutorFactory factory)
void
setHookable(IHookable h)
void
setObjectFactory(ITestObjectFactory factory)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.testng.internal.IConfiguration
addExecutionListener
-
-
-
-
Field Detail
-
m_annotationFinder
private IAnnotationFinder m_annotationFinder
-
m_objectFactory
private ITestObjectFactory m_objectFactory
-
m_hookable
private IHookable m_hookable
-
m_configurable
private IConfigurable m_configurable
-
m_executionListeners
private final java.util.Map<java.lang.Class<? extends IExecutionListener>,IExecutionListener> m_executionListeners
-
m_configurationListeners
private final java.util.Map<java.lang.Class<? extends IConfigurationListener>,IConfigurationListener> m_configurationListeners
-
alwaysRunListeners
private boolean alwaysRunListeners
-
m_executorFactory
private IExecutorFactory m_executorFactory
-
-
Constructor Detail
-
Configuration
public Configuration()
-
Configuration
public Configuration(IAnnotationFinder finder)
-
-
Method Detail
-
init
private void init(IAnnotationFinder finder)
-
getAnnotationFinder
public IAnnotationFinder getAnnotationFinder()
- Specified by:
getAnnotationFinder
in interfaceIConfiguration
-
setAnnotationFinder
public void setAnnotationFinder(IAnnotationFinder finder)
- Specified by:
setAnnotationFinder
in interfaceIConfiguration
-
getObjectFactory
public ITestObjectFactory getObjectFactory()
- Specified by:
getObjectFactory
in interfaceIConfiguration
-
setObjectFactory
public void setObjectFactory(ITestObjectFactory factory)
- Specified by:
setObjectFactory
in interfaceIConfiguration
-
getHookable
public IHookable getHookable()
- Specified by:
getHookable
in interfaceIConfiguration
-
setHookable
public void setHookable(IHookable h)
- Specified by:
setHookable
in interfaceIConfiguration
-
getConfigurable
public IConfigurable getConfigurable()
- Specified by:
getConfigurable
in interfaceIConfiguration
-
setConfigurable
public void setConfigurable(IConfigurable c)
- Specified by:
setConfigurable
in interfaceIConfiguration
-
getExecutionListeners
public java.util.List<IExecutionListener> getExecutionListeners()
- Specified by:
getExecutionListeners
in interfaceIConfiguration
-
addExecutionListenerIfAbsent
public boolean addExecutionListenerIfAbsent(IExecutionListener l)
- Specified by:
addExecutionListenerIfAbsent
in interfaceIConfiguration
-
getConfigurationListeners
public java.util.List<IConfigurationListener> getConfigurationListeners()
- Specified by:
getConfigurationListeners
in interfaceIConfiguration
-
addConfigurationListener
public void addConfigurationListener(IConfigurationListener cl)
- Specified by:
addConfigurationListener
in interfaceIConfiguration
-
setAlwaysRunListeners
public void setAlwaysRunListeners(boolean alwaysRunListeners)
- Specified by:
setAlwaysRunListeners
in interfaceIConfiguration
-
setExecutorFactory
public void setExecutorFactory(IExecutorFactory factory)
- Specified by:
setExecutorFactory
in interfaceIConfiguration
-
getExecutorFactory
public IExecutorFactory getExecutorFactory()
- Specified by:
getExecutorFactory
in interfaceIConfiguration
-
alwaysRunListeners
public boolean alwaysRunListeners()
- Specified by:
alwaysRunListeners
in interfaceIConfiguration
-
-