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 BindingSourceRestriction Contains abstractions for enforcingRestrictedBindingSource
.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.DisableCircularProxiesOption A request to disable circular proxies.Elements Exposes elements of a module so they can be inspected, validated orrewritten
.ElementSource Contains information about where and how anelement
was bound.ErrorDetail<SelfT extends ErrorDetail<SelfT>> Details about a single Guice error and supports formatting itself in the context of other Guice errors.InjectionPoint A constructor, field or method that can receive injections.InjectionRequest<T> A request to inject the instance fields and methods of an instance.InterceptorBinding Registration of interceptors for matching methods of matching classes.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.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. -
Annotation Types Summary Annotation Type Description Toolable Instructs anInjector
running inStage.TOOL
that a method should be injected.