1 package org.testng;
2 
3 /**
4  * Implement this interface if you need a handle to {@link ITestContext}.
5  *
6  * @author karthik.krishnan@gmail.com (Karthik Krishnan)
7  */
8 public interface IInvokedMethodListener2 extends IInvokedMethodListener {
9 
10   /**
11    * To be implemented if the method needs a handle to contextual information.
12    */
beforeInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context)13   void beforeInvocation(IInvokedMethod method, ITestResult testResult,
14       ITestContext context);
15 
16   /**
17    * To be implemented if the method needs a handle to contextual information.
18    */
afterInvocation(IInvokedMethod method, ITestResult testResult, ITestContext context)19   void afterInvocation(IInvokedMethod method, ITestResult testResult,
20       ITestContext context);
21 
22 }
23