IModuleFactory (TestNG)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.testng
Interface IModuleFactory

    public interface IModuleFactory

This interface is used by the moduleFactory attribute of the @Guice annotation. It allows users to use different Guice modules based on the test class waiting to be injected.

Author:
  Cedric Beust

Method Summary
`com.google.inject.Module` | `createModule(ITestContext context, java.lang.Class<?> testClass)`

Method Detail

### createModule

    com.google.inject.Module createModule(ITestContext context,
                                          java.lang.Class<?> testClass)

  Parameters:
    `context` - The current test context
    `testClass` - The test class
  Returns:
    The Guice module that should be used to get an instance of this test class.

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD