Top Description Fields Constructors Methods
org.testng.internal.objects

pack-priv Class GuiceBasedObjectDispenser

extends Object
implements IObjectDispenser
Class Inheritance
All Implemented Interfaces
org.testng.internal.objects.IObjectDispenser
Imports
com.google.inject.Injector, java.util.concurrent.locks.ReentrantLock, org.testng.ITestContext, org.testng.annotations.Guice, org.testng.internal.annotations.AnnotationHelper, org.testng.internal.invokers.objects.GuiceContext, org.testng.internal.objects.pojo.BasicAttributes, .CreationAttributes

A Guice backed Object dispenser that is aware of Dependency Injection

Field Summary

Modifier and TypeField and Description
private IObjectDispenser
private static final ReentrantLock

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static boolean
public Object
private Object
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

dispenserback to summary
private IObjectDispenser dispenser
lockback to summary
private static final ReentrantLock lock

Constructor Detail

GuiceBasedObjectDispenserback to summary
pack-priv GuiceBasedObjectDispenser()

Method Detail

cannotDispenseback to summary
private static boolean cannotDispense(Class<?> clazz)
dispenseback to summary
public Object dispense(CreationAttributes attributes)

Implements org.testng.internal.objects.IObjectDispenser.dispense.

Annotations
@Override
dispenseObjectback to summary
private Object dispenseObject(CreationAttributes attributes)
setNextDispenserback to summary
public void setNextDispenser(IObjectDispenser dispenser)

Implements org.testng.internal.objects.IObjectDispenser.setNextDispenser.

Parameters
dispenser:IObjectDispenser

Doc from org.testng.internal.objects.IObjectDispenser.setNextDispenser.

- The IObjectDispenser to dispense

Annotations
@Override