Package com.google.inject.spi
Interface ProviderInstanceBinding<T>
-
- All Superinterfaces:
Binding<T>
,Element
,HasDependencies
public interface ProviderInstanceBinding<T> extends Binding<T>, HasDependencies
A binding to a provider instance. The provider'sget
method is invoked to resolve injections.- Since:
- 2.0
- Author:
- jessewilson@google.com (Jesse Wilson)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Set<InjectionPoint>
getInjectionPoints()
Returns the field and method injection points of the provider, injected at injector-creation time only.Provider<? extends T>
getProviderInstance()
Deprecated.UsegetUserSuppliedProvider()
instead.javax.inject.Provider<? extends T>
getUserSuppliedProvider()
Returns the user-supplied, unscoped provider.-
Methods inherited from interface com.google.inject.Binding
acceptScopingVisitor, acceptTargetVisitor, getKey, getProvider
-
Methods inherited from interface com.google.inject.spi.Element
acceptVisitor, applyTo, getSource
-
Methods inherited from interface com.google.inject.spi.HasDependencies
getDependencies
-
-
-
-
Method Detail
-
getProviderInstance
@Deprecated Provider<? extends T> getProviderInstance()
Deprecated.UsegetUserSuppliedProvider()
instead.If the user supplied a JSR330 binding, then this will wrap that one. To always return the user-supplied provider, usegetUserSuppliedProvider()
.
-
getUserSuppliedProvider
javax.inject.Provider<? extends T> getUserSuppliedProvider()
Returns the user-supplied, unscoped provider.- Since:
- 4.0
-
getInjectionPoints
Set<InjectionPoint> getInjectionPoints()
Returns the field and method injection points of the provider, injected at injector-creation time only.- Returns:
- a possibly empty set
-
-