Package org.testng
Interface IInjectorFactory
- All Known Implementing Classes:
GuiceBackedInjectorFactory
public interface IInjectorFactory
Allows customization of the
Injector
creation when working with dependency injection.-
Method Summary
Modifier and TypeMethodDescriptiondefault com.google.inject.Injector
getInjector
(com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules)
-
Method Details
-
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.
-