Package com.google.inject.spi
Guice service provider interface
-
Interface Summary Interface Description BindingScopingVisitor<V> Visits each of the strategies used to scope an injection.BindingTargetVisitor<T,V> Visits each of the strategies used to find an instance to satisfy an injection.ConstructorBinding<T> A binding to the constructor of a concrete clss.ConvertedConstantBinding<T> A binding created from converting a bound instance to a new type.Element A core component of a module or injector.ElementVisitor<V> Visit elements.ExposedBinding<T> A binding to a key exposed from an enclosed private environment.HasDependencies InjectionListener<I> Listens for injections into instances of typeI
.InstanceBinding<T> A binding to a single instance.LinkedKeyBinding<T> A binding to a linked key.PrivateElements A private collection of elements that are hidden from the enclosing injector or module by default.ProviderBinding<T extends Provider<?>> A binding to aProvider
that delegates to the binding for the provided type.ProviderInstanceBinding<T> A binding to a provider instance.ProviderKeyBinding<T> A binding to a provider key.ProviderWithDependencies<T> A provider with dependencies on other injected types.ProviderWithExtensionVisitor<T> A Provider that is part of an extension which supports a custom BindingTargetVisitor.ProvidesMethodBinding<T> An @Provides
binding or binding produced by aModuleAnnotatedMethodScanner
.ProvidesMethodTargetVisitor<T,V> A visitor for the @Provides
bindings.ProvisionListener Listens for provisioning of objects.TypeConverter Converts constant string values to a different type.TypeEncounter<I> Context of an injectable type encounter.TypeListener Listens for Guice to encounter injectable types.UntargettedBinding<T> An untargetted binding. -
Class Summary Class Description DefaultBindingScopingVisitor<V> No-op visitor for subclassing.DefaultBindingTargetVisitor<T,V> No-op visitor for subclassing.DefaultElementVisitor<V> No-op visitor for subclassing.Dependency<T> A variable that can be resolved by an injector.DependencyAndSource Deprecated. The only use of this object is forProvisionListener.ProvisionInvocation.getDependencyChain()
which is also deprecated.DisableCircularProxiesOption A request to disable circular proxies.Elements Exposes elements of a module so they can be inspected, validated orrewritten
.Elements.ElementsAsModule Elements.ModuleInfo Elements.RecordingBinder ElementSource Contains information about where and how anelement
was bound.InjectionPoint A constructor, field or method that can receive injections.InjectionPoint.InjectableField InjectionPoint.InjectableMember Node in the doubly-linked list of injectable members (fields and methods).InjectionPoint.InjectableMembers Linked list of injectable members.InjectionPoint.InjectableMethod InjectionPoint.OverrideIndex Keeps track of injectable methods so we can remove methods that get overridden in O(1) time.InjectionPoint.Signature A method signature.InjectionRequest<T> A request to inject the instance fields and methods of an instance.MembersInjectorLookup<T> A lookup of the members injector for a type.Message An error message and the context in which it occured.ModuleAnnotatedMethodScanner Allows extensions to scan modules for annotated methods and bind those methods as providers, similar to@Provides
methods.ModuleAnnotatedMethodScannerBinding Represents a call toBinder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)
in a module.ModuleSource Associated to amodule
, provides the module class name, the parent modulesource
, and the call stack that ends just before the moduleconfigure(Binder)
method invocation.ProviderLookup<T> A lookup of the provider for a type.ProvisionListener.ProvisionInvocation<T> Encapsulates a single act of provisioning.ProvisionListenerBinding Binds keys (picked using a Matcher) to a provision listener.RequireAtInjectOnConstructorsOption A request to require explicit @Inject
annotations on constructors.RequireExactBindingAnnotationsOption A request to require exact binding annotations.RequireExplicitBindingsOption A request to require explicit bindings.ScopeBinding Registration of a scope annotation with the scope that implements it.StaticInjectionRequest A request to inject the static fields and methods of a type.TypeConverterBinding Registration of type converters for matching target types.TypeListenerBinding Binds types (picked using a Matcher) to an type listener. -
Enum Summary Enum Description InjectionPoint.Position Position in type hierarchy. -
Annotation Types Summary Annotation Type Description Toolable Instructs anInjector
running inStage.TOOL
that a method should be injected.