Class GuiceBackedInjectorFactory

java.lang.Object
org.testng.internal.GuiceBackedInjectorFactory
All Implemented Interfaces:
IInjectorFactory

class GuiceBackedInjectorFactory extends Object implements IInjectorFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.google.inject.Injector
    getInjector(com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules)
    Adding this method breaks existing implementations therefore for the time being (until deprecated method is removed) it calls the existing method.
    com.google.inject.Injector
    getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GuiceBackedInjectorFactory

      GuiceBackedInjectorFactory()
  • Method Details

    • getInjector

      @Deprecated public com.google.inject.Injector getInjector(com.google.inject.Stage stage, com.google.inject.Module... modules)
      Deprecated.
      Specified by:
      getInjector in interface IInjectorFactory
      Parameters:
      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.
    • getInjector

      public com.google.inject.Injector getInjector(@Nullable com.google.inject.Injector parent, com.google.inject.Stage stage, com.google.inject.Module... modules)
      Description copied from interface: IInjectorFactory
      Adding this method breaks existing implementations therefore for the time being (until deprecated method is removed) it calls the existing method.
      Specified by:
      getInjector in interface IInjectorFactory
      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.