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 TypeMethodDescriptionvoidaddConverter(TypeConverterBinding typeConverterBinding) voidaddInterceptorBinding(InterceptorBinding interceptorBinding) voidaddProvisionListener(ProvisionListenerBinding listenerBinding) voidvoidaddTypeListener(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) voidOnce the injector's explicit bindings are finalized, this method is called to index all explicit bindings by their return type.parent()voidputBinding(Key<?> key, BindingImpl<?> binding) voidputInjectionRequest(InjectionRequest<?> injectionRequest) voidputMembersInjectorLookup(MembersInjectorLookup<?> membersInjectorLookup) voidputProviderLookup(ProviderLookup<?> lookup) voidputScopeBinding(Class<? extends Annotation> annotationType, ScopeBinding scope) voidputStaticInjectionRequest(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()
-