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.InjectorgetInjector(com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules) Adding this method breaks existing implementations therefore for the time being (until deprecated method is removed) it calls the existing method.com.google.inject.InjectorgetInjector(com.google.inject.Stage stage, com.google.inject.Module... modules) Deprecated.
-
Constructor Details
-
GuiceBackedInjectorFactory
public GuiceBackedInjectorFactory()
-
-
Method Details
-
getInjector
@Deprecated public com.google.inject.Injector getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules) Deprecated.Description copied from interface:IInjectorFactoryNote thatIInjectorFactory.getInjector(Injector, Stage, Module...)should be used instead.- Specified by:
getInjectorin interfaceIInjectorFactory- Parameters:
stage- - AStageobject that defines the appropriate stagemodules- - An array ofModule- Returns:
- - An
Injectorinstance that can be used to perform dependency injection.
-
getInjector
public com.google.inject.Injector getInjector(@Nullable com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules) Description copied from interface:IInjectorFactoryAdding this method breaks existing implementations therefore for the time being (until deprecated method is removed) it calls the existing method.- Specified by:
getInjectorin interfaceIInjectorFactory- Parameters:
parent- - ParentInjectorinstance that was built with parent injectorstage- - AStageobject that defines the appropriate stagemodules- - An array ofModule- Returns:
- - An
Injectorinstance that can be used to perform dependency injection.
-