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 the Injector creation when working with dependency injection.
    • Method Detail

      • getInjector

        com.google.inject.Injector getInjector​(com.google.inject.Stage stage,
                                               com.google.inject.Module... modules)
        Parameters:
        stage - - A Stage object that defines the appropriate stage
        modules - - An array of Module
        Returns:
        - An Inject instance that can be used to perform dependency injection.