Top Description Methods
com.google.inject.spi

public Interface ProviderInstanceBinding<T>

extends Binding<T>, HasDependencies
Known Direct Implementers
com.google.inject.internal.ProviderInstanceBindingImpl
Imports
com.google.inject.Binding, .Provider, java.util.Set

A binding to a provider instance. The provider's get method is invoked to resolve injections.
Author
[email protected] (Jesse Wilson)
Since
2.0

Method Summary

Modifier and TypeMethod and Description
public Set<InjectionPoint>

Returns:

a possibly empty set
getInjectionPoints
()

Returns the field and method injection points of the provider, injected at injector-creation time only.

public Provider<? extends T>
getProviderInstance()

Deprecated Use getUserSuppliedProvider instead.
If the user supplied a JSR330 binding, then this will wrap that one.
public Provider<? extends T>
getUserSuppliedProvider()

Returns the user-supplied, unscoped provider.

Inherited from com.google.inject.Binding:
acceptScopingVisitoracceptTargetVisitorgetKeygetProvider
Inherited from com.google.inject.spi.HasDependencies:
getDependencies

Method Detail

getInjectionPointsback to summary
public Set<InjectionPoint> getInjectionPoints()

Returns the field and method injection points of the provider, injected at injector-creation time only.

Returns:Set<InjectionPoint>

a possibly empty set

getProviderInstanceback to summary
public Provider<? extends T> getProviderInstance()

Deprecated

Use getUserSuppliedProvider instead.

If the user supplied a JSR330 binding, then this will wrap that one. To always return the user-supplied provider, use getUserSuppliedProvider.

Annotations
@Deprecated
getUserSuppliedProviderback to summary
public Provider<? extends T> getUserSuppliedProvider()

Returns the user-supplied, unscoped provider.

Since
4.0