Java 类org.testng.IConfigurationListener2 实例源码

项目:TestNG-Foundation    文件:ListenerChain.java   
/**
 * [IConfigurationListener2]
 * Invoked before a configuration method is invoked.
 * 
 * @param tr test result object for the associated configuration method
 */
@Override
public void beforeConfiguration(ITestResult tr) {
    synchronized(configListeners2) {
        for (IConfigurationListener2 configListener : Lists.reverse(configListeners2)) {
            configListener.beforeConfiguration(tr);
        }
    }
}