Package org.testng
Interface IInjectorFactory
-
- All Known Implementing Classes:
GuiceBackedInjectorFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IInjectorFactory
Allows customization of theInjector
creation when working with dependency injection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.inject.Injector
getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)
-
-
-
Method Detail
-
getInjector
com.google.inject.Injector getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)
- Parameters:
stage
- - AStage
object that defines the appropriate stagemodules
- - An array ofModule
- Returns:
- - An
Inject
instance that can be used to perform dependency injection.
-
-