Package org.testng
Class GuiceHelper
- java.lang.Object
-
- org.testng.GuiceHelper
-
public class GuiceHelper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
GuiceHelper.LazyHolder
-
Field Summary
Fields Modifier and Type Field Description private ITestContext
context
-
Constructor Summary
Constructors Constructor Description GuiceHelper(ITestContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.google.inject.Injector
createInjector(ITestContext context, java.util.List<com.google.inject.Module> moduleInstances)
Deprecated.- This method stands deprecated as of 7.0.1static com.google.inject.Injector
createInjector(ITestContext context, IInjectorFactory injectorFactory, java.util.List<com.google.inject.Module> moduleInstances)
(package private) com.google.inject.Injector
getInjector(IClass iClass)
Deprecated.- This method stands deprecated as of 7.0.1(package private) com.google.inject.Injector
getInjector(IClass iClass, IInjectorFactory injectorFactory)
private java.util.List<com.google.inject.Module>
getModules(Guice guice, com.google.inject.Injector parentInjector, java.lang.Class<?> testClass)
private static com.google.inject.Module
getParentModule(ITestContext context)
-
-
-
Field Detail
-
context
private final ITestContext context
-
-
Constructor Detail
-
GuiceHelper
GuiceHelper(ITestContext context)
-
-
Method Detail
-
getInjector
@Deprecated com.google.inject.Injector getInjector(IClass iClass)
Deprecated.- This method stands deprecated as of 7.0.1
-
getInjector
com.google.inject.Injector getInjector(IClass iClass, IInjectorFactory injectorFactory)
-
getParentModule
private static com.google.inject.Module getParentModule(ITestContext context)
-
createInjector
@Deprecated public static com.google.inject.Injector createInjector(ITestContext context, java.util.List<com.google.inject.Module> moduleInstances)
Deprecated.- This method stands deprecated as of 7.0.1- Parameters:
context
- The test contextmoduleInstances
- The modules- Returns:
- The Injector
-
createInjector
public static com.google.inject.Injector createInjector(ITestContext context, IInjectorFactory injectorFactory, java.util.List<com.google.inject.Module> moduleInstances)
-
getModules
private java.util.List<com.google.inject.Module> getModules(Guice guice, com.google.inject.Injector parentInjector, java.lang.Class<?> testClass)
-
-