Package org.testng.internal.objects
Class GuiceBackedInjectorFactory
java.lang.Object
org.testng.internal.objects.GuiceBackedInjectorFactory
- All Implemented Interfaces:
IInjectorFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.inject.Injector
getInjector
(com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules)
-
Constructor Details
-
GuiceBackedInjectorFactory
public GuiceBackedInjectorFactory()
-
-
Method Details
-
getInjector
public com.google.inject.Injector getInjector(@Nullable com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules) - Specified by:
getInjector
in interfaceIInjectorFactory
- Parameters:
parent
- - ParentInjector
instance that was built with parent injectorstage
- - AStage
object that defines the appropriate stagemodules
- - An array ofModule
- Returns:
- - An
Injector
instance that can be used to perform dependency injection.
-