Package com.google.inject.spi
Class ProvisionListener.ProvisionInvocation<T>
- java.lang.Object
-
- com.google.inject.spi.ProvisionListener.ProvisionInvocation<T>
-
- Enclosing interface:
- ProvisionListener
public abstract static class ProvisionListener.ProvisionInvocation<T> extends java.lang.Object
Encapsulates a single act of provisioning.- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description ProvisionInvocation()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Binding<T>
getBinding()
Returns the Binding this is provisioning.abstract java.util.List<DependencyAndSource>
getDependencyChain()
Returns the dependency chain that led to this object being provisioned.abstract T
provision()
Performs the provision, returning the object provisioned.
-
-
-
Method Detail
-
getBinding
public abstract Binding<T> getBinding()
Returns the Binding this is provisioning.You must not call
Provider.get()
on the provider returned byBinding.getProvider()
, otherwise you will get confusing error messages.
-
provision
public abstract T provision()
Performs the provision, returning the object provisioned.
-
getDependencyChain
public abstract java.util.List<DependencyAndSource> getDependencyChain()
Returns the dependency chain that led to this object being provisioned.
-
-