Package org.testng
Interface IInjectorFactory
-
- All Known Implementing Classes:
GuiceBackedInjectorFactory
public interface IInjectorFactory
Allows customization of theInjector
creation when working with dependency injection.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default com.google.inject.Injector
getInjector(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
- - 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.
-
-