Package org.testng.internal.objects
Class GuiceBackedInjectorFactory
- java.lang.Object
-
- org.testng.internal.objects.GuiceBackedInjectorFactory
-
- All Implemented Interfaces:
IInjectorFactory
public 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.Injector
getInjector(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.Injector
getInjector(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.Description copied from interface:IInjectorFactory
Note thatIInjectorFactory.getInjector(Injector, Stage, Module...)
should be used instead.- Specified by:
getInjector
in interfaceIInjectorFactory
- Parameters:
stage
- - AStage
object that defines the appropriate stagemodules
- - An array ofModule
- Returns:
- - An
Injector
instance 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:IInjectorFactory
Adding this method breaks existing implementations therefore for the time being (until deprecated method is removed) it calls the existing method.- 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.
-
-