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

      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 - - Parent Injector instance that was built with parent injector
        stage - - A Stage object that defines the appropriate stage
        modules - - An array of Module
        Returns:
        - An Injector instance that can be used to perform dependency injection.