Package com.google.inject.internal
Class InjectorBindingData
java.lang.Object
com.google.inject.internal.InjectorBindingData
A container that stores an injector's binding data. This excludes JIT binding data, which is
stored in
InjectorJitBindingData
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TypeConverterBinding>
private final com.google.common.collect.ListMultimap<TypeLiteral<?>,
Binding<?>> private final Set<InjectionRequest<?>>
private final List<InterceptorBinding>
private final Set<MembersInjectorLookup<?>>
private final Optional<InjectorBindingData>
private final Set<ProviderLookup<?>>
private final List<ProvisionListenerBinding>
private final List<ModuleAnnotatedMethodScannerBinding>
private final Map<Class<? extends Annotation>,
ScopeBinding> private final Set<StaticInjectionRequest>
private final List<TypeListenerBinding>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addConverter
(TypeConverterBinding typeConverterBinding) void
addInterceptorBinding
(InterceptorBinding interceptorBinding) void
addProvisionListener
(ProvisionListenerBinding listenerBinding) void
void
addTypeListener
(TypeListenerBinding listenerBinding) getConverter
(String stringValue, TypeLiteral<?> type, Errors errors, Object source) <T> BindingImpl<T>
getExplicitBinding
(Key<T> key) com.google.common.collect.ListMultimap<TypeLiteral<?>,
Binding<?>> Set<InjectionRequest<?>>
com.google.common.collect.ImmutableList<InterceptorBinding>
com.google.common.collect.ImmutableList<InterceptorBinding>
Set<ProviderLookup<?>>
com.google.common.collect.ImmutableList<ProvisionListenerBinding>
com.google.common.collect.ImmutableList<ProvisionListenerBinding>
com.google.common.collect.ImmutableList<ModuleAnnotatedMethodScannerBinding>
com.google.common.collect.ImmutableList<ModuleAnnotatedMethodScannerBinding>
getScopeBinding
(Class<? extends Annotation> annotationType) Map<Class<? extends Annotation>,
Scope> com.google.common.collect.ImmutableList<TypeListenerBinding>
com.google.common.collect.ImmutableList<TypeListenerBinding>
(package private) void
Once the injector's explicit bindings are finalized, this method is called to index all explicit bindings by their return type.parent()
void
putBinding
(Key<?> key, BindingImpl<?> binding) void
putInjectionRequest
(InjectionRequest<?> injectionRequest) void
putMembersInjectorLookup
(MembersInjectorLookup<?> membersInjectorLookup) void
putProviderLookup
(ProviderLookup<?> lookup) void
putScopeBinding
(Class<? extends Annotation> annotationType, ScopeBinding scope) void
putStaticInjectionRequest
(StaticInjectionRequest staticInjectionRequest)
-
Field Details
-
parent
-
explicitBindingsMutable
-
explicitBindings
-
scopes
-
providerLookups
-
staticInjectionRequests
-
membersInjectorLookups
-
injectionRequests
-
converters
-
interceptorBindings
-
typeListenerBindings
-
provisionListenerBindings
-
scannerBindings
-
indexedExplicitBindings
private final com.google.common.collect.ListMultimap<TypeLiteral<?>,Binding<?>> indexedExplicitBindings
-
-
Constructor Details
-
InjectorBindingData
InjectorBindingData(Optional<InjectorBindingData> parent)
-
-
Method Details
-
parent
-
getExplicitBinding
-
getExplicitBindingsThisLevel
-
putBinding
-
putProviderLookup
-
getProviderLookupsThisLevel
-
putStaticInjectionRequest
-
getStaticInjectionRequestsThisLevel
-
putInjectionRequest
-
getInjectionRequestsThisLevel
-
putMembersInjectorLookup
-
getMembersInjectorLookupsThisLevel
-
getScopeBinding
-
putScopeBinding
-
getScopeBindingsThisLevel
-
getConvertersThisLevel
-
addConverter
-
getConverter
public TypeConverterBinding getConverter(String stringValue, TypeLiteral<?> type, Errors errors, Object source) -
addInterceptorBinding
-
getInterceptorBindings
-
getInterceptorBindingsThisLevel
public com.google.common.collect.ImmutableList<InterceptorBinding> getInterceptorBindingsThisLevel() -
addTypeListener
-
getTypeListenerBindings
-
getTypeListenerBindingsThisLevel
public com.google.common.collect.ImmutableList<TypeListenerBinding> getTypeListenerBindingsThisLevel() -
addProvisionListener
-
getProvisionListenerBindings
public com.google.common.collect.ImmutableList<ProvisionListenerBinding> getProvisionListenerBindings() -
getProvisionListenerBindingsThisLevel
public com.google.common.collect.ImmutableList<ProvisionListenerBinding> getProvisionListenerBindingsThisLevel() -
addScanner
-
getScannerBindings
public com.google.common.collect.ImmutableList<ModuleAnnotatedMethodScannerBinding> getScannerBindings() -
getScannerBindingsThisLevel
public com.google.common.collect.ImmutableList<ModuleAnnotatedMethodScannerBinding> getScannerBindingsThisLevel() -
getScopes
-
indexBindingsByType
void indexBindingsByType()Once the injector's explicit bindings are finalized, this method is called to index all explicit bindings by their return type. -
getIndexedExplicitBindings
public com.google.common.collect.ListMultimap<TypeLiteral<?>,Binding<?>> getIndexedExplicitBindings()
-