1 package org.testng;
2 
3 /**
4  * This class defines a pair of instance/class.  A method with @Factory
5  * can return an array of these objects instead of Object[] so that
6  * instances can be dynamic proxies or mock objects and still provide
7  * enough information to TestNG to figure out what classes the
8  * annotations should be looked up in.
9  *
10  * @author <a href="mailto:cedric@beust.com">Cedric Beust</a>
11  */
12 public interface IInstanceInfo {
13 
14   /**
15    * @return The instance on which the tests will be invoked.
16    */
getInstance()17   public Object getInstance();
18 
19   /**
20    * @return The class on which the TestNG annotations should be looked for.
21    */
getInstanceClass()22   public Class getInstanceClass();
23 }
24