Package org.testng
Interface IInjectorFactory
-
- All Known Implementing Classes:
GuiceBackedInjectorFactory
public interface IInjectorFactoryAllows customization of theInjectorcreation when working with dependency injection.
-
-
Method Summary
All Methods Instance Methods Default 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)
-
-
-
Method Detail
-
getInjector
default com.google.inject.Injector getInjector(@Nullable com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules)- 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.
-
-