Package org.testng
Interface IInjectorFactory
-
public interface IInjectorFactoryAllows customization of theInjectorcreation when working with dependency injection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default 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.Note thatgetInjector(Injector, Stage, Module...)should be used instead.
-
-
-
Method Detail
-
getInjector
@Deprecated com.google.inject.Injector getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)Deprecated.Note thatgetInjector(Injector, Stage, Module...)should be used instead.- Parameters:
stage- - AStageobject that defines the appropriate stagemodules- - An array ofModule- Returns:
- - An
Injectorinstance that can be used to perform dependency injection.
-
getInjector
default com.google.inject.Injector getInjector(@Nullable 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.- 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.
-
-