Uses of Interface
com.google.inject.spi.Element
-
Packages that use Element Package Description com.google.inject Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.com.google.inject.multibindings Extension for binding multiple instances in a collection; this extension requiresguice-multibindings.jar
.com.google.inject.spi Guice service provider interface -
-
Uses of Element in com.google.inject
Subinterfaces of Element in com.google.inject Modifier and Type Interface Description interface
Binding<T>
A mapping from aKey
to the strategy for getting instances of the type.Methods in com.google.inject that return types with arguments of type Element Modifier and Type Method Description List<Element>
Injector. getElements()
Returns the elements that make up this injector. -
Uses of Element in com.google.inject.multibindings
Methods in com.google.inject.multibindings with parameters of type Element Modifier and Type Method Description boolean
MapBinderBinding. containsElement(Element element)
Returns true if this MapBinder contains the given Element in order to build the map or uses the given Element in order to support building and injecting the map.boolean
MultibinderBinding. containsElement(Element element)
Returns true if this Multibinder uses the given Element.boolean
OptionalBinderBinding. containsElement(Element element)
Returns true if this OptionalBinder contains the given Element in order to build the optional binding or uses the given Element in order to support building and injecting its data.Method parameters in com.google.inject.multibindings with type arguments of type Element Modifier and Type Method Description List<Map.Entry<?,Binding<?>>>
MapBinderBinding. getEntries(Iterable<? extends Element> elements)
Similar toMapBinderBinding.getEntries()
, but can be used on a MapBinderBinding retrieved fromElements.getElements(com.google.inject.Module...)
. -
Uses of Element in com.google.inject.spi
Subinterfaces of Element in com.google.inject.spi Modifier and Type Interface Description interface
ConstructorBinding<T>
A binding to the constructor of a concrete class.interface
ConvertedConstantBinding<T>
A binding created from converting a bound instance to a new type.interface
ExposedBinding<T>
A binding to a key exposed from an enclosed private environment.interface
InstanceBinding<T>
A binding to a single instance.interface
LinkedKeyBinding<T>
A binding to a linked key.interface
PrivateElements
A private collection of elements that are hidden from the enclosing injector or module by default.interface
ProviderBinding<T extends Provider<?>>
A binding to aProvider
that delegates to the binding for the provided type.interface
ProviderInstanceBinding<T>
A binding to a provider instance.interface
ProviderKeyBinding<T>
A binding to a provider key.interface
UntargettedBinding<T>
An untargetted binding.Classes in com.google.inject.spi that implement Element Modifier and Type Class Description class
DisableCircularProxiesOption
A request to disable circular proxies.class
InjectionRequest<T>
A request to inject the instance fields and methods of an instance.class
InterceptorBinding
Registration of interceptors for matching methods of matching classes.class
MembersInjectorLookup<T>
A lookup of the members injector for a type.class
Message
An error message and the context in which it occurred.class
ModuleAnnotatedMethodScannerBinding
Represents a call toBinder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)
in a module.class
ProviderLookup<T>
A lookup of the provider for a type.class
ProvisionListenerBinding
Binds keys (picked using a Matcher) to a provision listener.class
RequireAtInjectOnConstructorsOption
A request to require explicit @Inject
annotations on constructors.class
RequireExactBindingAnnotationsOption
A request to require exact binding annotations.class
RequireExplicitBindingsOption
A request to require explicit bindings.class
ScopeBinding
Registration of a scope annotation with the scope that implements it.class
StaticInjectionRequest
A request to inject the static fields and methods of a type.class
TypeConverterBinding
Registration of type converters for matching target types.class
TypeListenerBinding
Binds types (picked using a Matcher) to an type listener.Methods in com.google.inject.spi that return types with arguments of type Element Modifier and Type Method Description static List<Element>
Elements. getElements(Module... modules)
Records the elements executed bymodules
.static List<Element>
Elements. getElements(Stage stage, Module... modules)
Records the elements executed bymodules
.static List<Element>
Elements. getElements(Stage stage, Iterable<? extends Module> modules)
Records the elements executed bymodules
.static List<Element>
Elements. getElements(Iterable<? extends Module> modules)
Records the elements executed bymodules
.List<Element>
PrivateElements. getElements()
Returns the configuration information in this private environment.Methods in com.google.inject.spi with parameters of type Element Modifier and Type Method Description protected V
DefaultElementVisitor. visitOther(Element element)
Default visit implementation.Method parameters in com.google.inject.spi with type arguments of type Element Modifier and Type Method Description static ImmutableList<Message>
BindingSourceRestriction. check(com.google.inject.internal.GuiceInternal guiceInternal, List<Element> elements)
Returns all the restriction violations found on the given Module Elements, as error messages.static Module
Elements. getModule(Iterable<? extends Element> elements)
Returns the module composed ofelements
.
-