Class InjectorBindingData


  • class InjectorBindingData
    extends java.lang.Object
    A container that stores an injector's binding data. This excludes JIT binding data, which is stored in InjectorJitBindingData.
    • Constructor Detail

    • Method Detail

      • getExplicitBinding

        public <T> BindingImpl<T> getExplicitBinding​(Key<T> key)
      • getExplicitBindingsThisLevel

        public java.util.Map<Key<?>,​Binding<?>> getExplicitBindingsThisLevel()
      • putBinding

        public void putBinding​(Key<?> key,
                               BindingImpl<?> binding)
      • putProviderLookup

        public void putProviderLookup​(ProviderLookup<?> lookup)
      • getProviderLookupsThisLevel

        public java.util.Set<ProviderLookup<?>> getProviderLookupsThisLevel()
      • putStaticInjectionRequest

        public void putStaticInjectionRequest​(StaticInjectionRequest staticInjectionRequest)
      • getStaticInjectionRequestsThisLevel

        public java.util.Set<StaticInjectionRequest> getStaticInjectionRequestsThisLevel()
      • putInjectionRequest

        public void putInjectionRequest​(InjectionRequest<?> injectionRequest)
      • getInjectionRequestsThisLevel

        public java.util.Set<InjectionRequest<?>> getInjectionRequestsThisLevel()
      • putMembersInjectorLookup

        public void putMembersInjectorLookup​(MembersInjectorLookup<?> membersInjectorLookup)
      • getMembersInjectorLookupsThisLevel

        public java.util.Set<MembersInjectorLookup<?>> getMembersInjectorLookupsThisLevel()
      • getScopeBinding

        public ScopeBinding getScopeBinding​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
      • putScopeBinding

        public void putScopeBinding​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
                                    ScopeBinding scope)
      • getScopeBindingsThisLevel

        public java.util.Collection<ScopeBinding> getScopeBindingsThisLevel()
      • addInterceptorBinding

        public void addInterceptorBinding​(InterceptorBinding interceptorBinding)
      • getInterceptorBindings

        public com.google.common.collect.ImmutableList<InterceptorBinding> getInterceptorBindings()
      • getInterceptorBindingsThisLevel

        public com.google.common.collect.ImmutableList<InterceptorBinding> getInterceptorBindingsThisLevel()
      • getTypeListenerBindings

        public com.google.common.collect.ImmutableList<TypeListenerBinding> getTypeListenerBindings()
      • getTypeListenerBindingsThisLevel

        public com.google.common.collect.ImmutableList<TypeListenerBinding> getTypeListenerBindingsThisLevel()
      • getProvisionListenerBindings

        public com.google.common.collect.ImmutableList<ProvisionListenerBinding> getProvisionListenerBindings()
      • getProvisionListenerBindingsThisLevel

        public com.google.common.collect.ImmutableList<ProvisionListenerBinding> getProvisionListenerBindingsThisLevel()
      • getScopes

        public java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,​Scope> 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()