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 IInjectorFactoryAllows customization of theInjectorcreation when working with dependency injection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.inject.InjectorgetInjector(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- - AStageobject that defines the appropriate stagemodules- - An array ofModule- Returns:
- - An
Injectinstance that can be used to perform dependency injection.
-
-