• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.testng;
2 
3 import com.google.inject.Module;
4 
5 /**
6  * This interface is used by the moduleFactory attribute of the @Guice
7  * annotation. It allows users to use different Guice modules based on the test
8  * class waiting to be injected.
9  *
10  * @author Cedric Beust <cedric@beust.com>
11  */
12 public interface IModuleFactory {
13 
14   /**
15    * @param context The current test context
16    * @param testClass The test class
17    *
18    * @return The Guice module that should be used to get an instance of this
19    * test class.
20    */
createModule(ITestContext context, Class<?> testClass)21   Module createModule(ITestContext context, Class<?> testClass);
22 }
23