public static abstract class

ProvisionListener.ProvisionInvocation

extends Object
java.lang.Object
   ↳ com.google.inject.spi.ProvisionListener.ProvisionInvocation<T>

Class Overview

Encapsulates a single act of provisioning.

Summary

Public Constructors
ProvisionInvocation()
Public Methods
abstract Binding<T> getBinding()
Returns the Binding this is provisioning.
abstract List<DependencyAndSource> getDependencyChain()
Returns the dependency chain that led to this object being provisioned.
abstract T provision()
Performs the provision, returning the object provisioned.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ProvisionInvocation ()

Public Methods

public abstract Binding<T> getBinding ()

Returns the Binding this is provisioning.

You must not call get() on the provider returned by getProvider(), otherwise you will get confusing error messages.

public abstract List<DependencyAndSource> getDependencyChain ()

Returns the dependency chain that led to this object being provisioned.

public abstract T provision ()

Performs the provision, returning the object provisioned.