private static final class RealMultibinder.RealMultibinderCollectionOfProvidersProvider<T> extends InternalProviderInstanceBindingImpl.Factory<java.util.Collection<Provider<T>>>
Modifier and Type | Field and Description |
---|---|
private RealMultibinder.BindingSelection<T> |
bindingSelection |
private com.google.common.collect.ImmutableList<Provider<T>> |
collectionOfProviders |
provisionCallback
Constructor and Description |
---|
RealMultibinderCollectionOfProvidersProvider(RealMultibinder.BindingSelection<T> bindingSelection) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<Provider<T>> |
doProvision(InternalContext context,
Dependency<?> dependency)
Creates an object to be injected.
|
boolean |
equals(java.lang.Object obj) |
java.util.Set<Dependency<?>> |
getDependencies()
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.
|
get, get, getSource
private final RealMultibinder.BindingSelection<T> bindingSelection
RealMultibinderCollectionOfProvidersProvider(RealMultibinder.BindingSelection<T> bindingSelection)
void initialize(InjectorImpl injector, Errors errors) throws ErrorsException
InternalProviderInstanceBindingImpl.Factory
Will be called exactly once, prior to any call to InternalProviderInstanceBindingImpl.Factory.doProvision(com.google.inject.internal.InternalContext, com.google.inject.spi.Dependency<?>)
.
initialize
in class InternalProviderInstanceBindingImpl.Factory<java.util.Collection<Provider<T>>>
ErrorsException
protected java.util.Collection<Provider<T>> doProvision(InternalContext context, Dependency<?> dependency)
InternalProviderInstanceBindingImpl.Factory
doProvision
in class InternalProviderInstanceBindingImpl.Factory<java.util.Collection<Provider<T>>>
public java.util.Set<Dependency<?>> getDependencies()
HasDependencies
Injector
will be
included in the returned set.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object