Package com.google.inject.internal
Class RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<Collection<Provider<T>>>
com.google.inject.internal.RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
- All Implemented Interfaces:
InternalFactory<Collection<Provider<T>>>
,Provider<Collection<Provider<T>>>
,HasDependencies
,javax.inject.Provider<Collection<Provider<T>>>
- Enclosing class:
- RealMultibinder<T>
private static final class RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T>
extends InternalProviderInstanceBindingImpl.Factory<Collection<Provider<T>>>
-
Field Summary
FieldsFields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
Constructor Summary
ConstructorsConstructorDescriptionRealMultibinderCollectionOfProvidersProvider
(RealMultibinder.BindingSelection<T> bindingSelection) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<Provider<T>>
doProvision
(InternalContext context, Dependency<?> dependency) Creates an object to be injected.boolean
Set<Dependency<?>>
Returns the known dependencies for this type.int
hashCode()
(package private) void
initialize
(InjectorImpl injector, Errors errors) A callback that allows for implementations to fetch dependencies on other bindings.Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
get, get, getSource
-
Field Details
-
bindingSelection
-
collectionOfProviders
-
-
Constructor Details
-
RealMultibinderCollectionOfProvidersProvider
RealMultibinderCollectionOfProvidersProvider(RealMultibinder.BindingSelection<T> bindingSelection)
-
-
Method Details
-
initialize
Description copied from class:InternalProviderInstanceBindingImpl.Factory
A callback that allows for implementations to fetch dependencies on other bindings.Will be called exactly once, prior to any call to
InternalProviderInstanceBindingImpl.Factory.doProvision(com.google.inject.internal.InternalContext, com.google.inject.spi.Dependency<?>)
.- Specified by:
initialize
in classInternalProviderInstanceBindingImpl.Factory<Collection<Provider<T>>>
- Throws:
ErrorsException
-
doProvision
Description copied from class:InternalProviderInstanceBindingImpl.Factory
Creates an object to be injected.- Specified by:
doProvision
in classInternalProviderInstanceBindingImpl.Factory<Collection<Provider<T>>>
- Returns:
- instance to be injected
-
getDependencies
Description copied from interface:HasDependencies
Returns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for theInjector
will be included in the returned set.- Returns:
- a possibly empty set
-
equals
-
hashCode
public int hashCode()
-