com.google.inject.spi
Class ProvisionListener.ProvisionInvocation<T>

java.lang.Object
  extended by com.google.inject.spi.ProvisionListener.ProvisionInvocation<T>
Enclosing interface:
ProvisionListener

public abstract static class ProvisionListener.ProvisionInvocation<T>
extends Object

Encapsulates a single act of provisioning.


Constructor Summary
ProvisionListener.ProvisionInvocation()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProvisionListener.ProvisionInvocation

public ProvisionListener.ProvisionInvocation()
Method Detail

getBinding

public abstract Binding<T> getBinding()
Returns the Binding this is provisioning.

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


provision

public abstract T provision()
Performs the provision, returning the object provisioned.


getDependencyChain

public abstract List<DependencyAndSource> getDependencyChain()
Returns the dependency chain that led to this object being provisioned.



Copyright © 2006-2014 Google, Inc.. All Rights Reserved.