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
 Class<? extends com.google.inject.Module> createModule(ITestContext context, Class<?> testClass)
           
 

Method Detail

createModule

Class<? extends com.google.inject.Module> createModule(ITestContext context,
                                                       Class<?> testClass)
Parameters:
testClass - The teset class
Returns:
The class of the Guice module to instantiate in order to get an instance of this test class.


Copyright © 2011. All Rights Reserved.