
org.testng.IInjectorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
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