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