All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.IInjectorFactory Maven / Gradle / Ivy

There is a newer version: 7.10.2
Show newest version
package org.testng;

import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.Stage;
import javax.annotation.Nullable;

/** Allows customization of the {@link Injector} creation when working with dependency injection. */
public interface IInjectorFactory {

  /**
   * @param parent - Parent {@link com.google.inject.Injector} instance that was built with parent
   *     injector
   * @param stage - A {@link Stage} object that defines the appropriate stage
   * @param modules - An array of {@link Module}
   * @return - An {@link com.google.inject.Injector} instance that can be used to perform dependency
   *     injection.
   */
  default Injector getInjector(@Nullable Injector parent, Stage stage, Module... modules) {
    throw new UnsupportedOperationException("Not implemented");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy