Package org.testng.internal
Class GuiceBackedInjectorFactory
- java.lang.Object
-
- org.testng.internal.GuiceBackedInjectorFactory
-
- All Implemented Interfaces:
IInjectorFactory
class GuiceBackedInjectorFactory extends java.lang.Object implements IInjectorFactory
-
-
Constructor Summary
Constructors Constructor Description GuiceBackedInjectorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.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.
-
-
-
Method Detail
-
getInjector
@Deprecated public com.google.inject.Injector getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)Deprecated.- 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.
-
-