Uses of Interface
com.google.inject.spi.Element
Packages that use Element
Package
Description
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
Guice (sounds like "juice")
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar
.Guice service provider interface
-
Uses of Element in com.google.inject
Subinterfaces of Element in com.google.injectModifier and TypeInterfaceDescriptioninterface
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 ElementModifier and TypeMethodDescriptionInjector.getElements()
Returns the elements that make up this injector. -
Uses of Element in com.google.inject.internal
Classes in com.google.inject.internal that implement ElementFields in com.google.inject.internal with type parameters of type ElementModifier and TypeFieldDescriptionAbstractBindingBuilder.elements
The list of elements stored inside theAbstractBindingBuilder.binder
.Methods in com.google.inject.internal that return types with arguments of type ElementModifier and TypeMethodDescriptionPrivateElementsImpl.getElements()
PrivateElementsImpl.getElementsMutable()
Constructor parameters in com.google.inject.internal with type arguments of type Element -
Uses of Element in com.google.inject.multibindings
Methods in com.google.inject.multibindings with parameters of type ElementModifier and TypeMethodDescriptionboolean
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 ElementModifier and TypeMethodDescriptionMapBinderBinding.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.spiModifier and TypeInterfaceDescriptioninterface
A binding to the constructor of a concrete class.interface
A binding created from converting a bound instance to a new type.interface
A binding to a key exposed from an enclosed private environment.interface
A binding to a single instance.interface
A binding to a linked key.interface
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
A binding to a provider instance.interface
A binding to a provider key.interface
An untargetted binding.Classes in com.google.inject.spi that implement ElementModifier and TypeClassDescriptionfinal class
A request to disable circular proxies.final class
A request to inject the instance fields and methods of an instance.final class
Registration of interceptors for matching methods of matching classes.final class
A lookup of the members injector for a type.final class
An error message and the context in which it occurred.final class
Represents a call toBinder.scanModulesForAnnotatedMethods(com.google.inject.spi.ModuleAnnotatedMethodScanner)
in a module.final class
A lookup of the provider for a type.final class
Binds keys (picked using a Matcher) to a provision listener.final class
A request to require explicit @Inject
annotations on constructors.final class
A request to require exact binding annotations.final class
A request to require explicit bindings.final class
Registration of a scope annotation with the scope that implements it.final class
A request to inject the static fields and methods of a type.final class
Registration of type converters for matching target types.final class
Binds types (picked using a Matcher) to an type listener.Methods in com.google.inject.spi that return types with arguments of type ElementModifier and TypeMethodDescriptionElements.getElements
(Module... modules) Records the elements executed bymodules
.Elements.getElements
(Stage stage, Module... modules) Records the elements executed bymodules
.Elements.getElements
(Stage stage, Iterable<? extends Module> modules) Records the elements executed bymodules
.Elements.getElements
(Iterable<? extends Module> modules) Records the elements executed bymodules
.PrivateElements.getElements()
Returns the configuration information in this private environment.Methods in com.google.inject.spi with parameters of type ElementModifier and TypeMethodDescriptionprotected V
DefaultElementVisitor.visitOther
(Element element) Default visit implementation.Method parameters in com.google.inject.spi with type arguments of type ElementModifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableList
<Message> BindingSourceRestriction.check
(GuiceInternal guiceInternal, List<Element> elements) Returns all the restriction violations found on the given Module Elements, as error messages.static Module
Returns the module composed ofelements
.