Package com.google.inject.spi
Interface ProviderInstanceBinding<T>
- All Superinterfaces:
Binding<T>
,Element
,HasDependencies
- All Known Implementing Classes:
InternalProviderInstanceBindingImpl
,ProviderInstanceBindingImpl
A binding to a provider instance. The provider's
get
method is invoked to resolve
injections.- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns the field and method injection points of the provider, injected at injector-creation time only.Deprecated.javax.inject.Provider<? extends T>
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 Details
-
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
-
getUserSuppliedProvider()
instead.