Top Constructors Methods
org.testng.internal.objects

public Class GuiceBackedInjectorFactory

extends Object
implements IInjectorFactory
Class Inheritance
All Implemented Interfaces
org.testng.IInjectorFactory
Imports
com.google.inject.Guice, .Injector, .Module, .Stage, javax.annotation.Nullable, org.testng.IInjectorFactory

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Injector
getInjector(Injector
- Parent com.google.inject.Injector instance that was built with parent injector
parent
,
Stage
- A Stage object that defines the appropriate stage
stage
,
Module...
- An array of Module
modules
)

Overrides default org.testng.IInjectorFactory.getInjector.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GuiceBackedInjectorFactoryback to summary
public GuiceBackedInjectorFactory()

Method Detail

getInjectorback to summary
public Injector getInjector(Injector parent, Stage stage, Module... modules)

Overrides default org.testng.IInjectorFactory.getInjector.

Parameters
parent:Injector

Doc from org.testng.IInjectorFactory.getInjector.

- Parent com.google.inject.Injector instance that was built with parent injector

stage:Stage

Doc from org.testng.IInjectorFactory.getInjector.

- A Stage object that defines the appropriate stage

modules:Module[]

Doc from org.testng.IInjectorFactory.getInjector.

- An array of Module

Returns:Injector

Doc from org.testng.IInjectorFactory.getInjector.

- An com.google.inject.Injector instance that can be used to perform dependency injection.

Annotations
@Override