Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency
injection framework.
|
com.google.inject.internal |
Guice (sounds like like "juice")
|
com.google.inject.multibindings |
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar . |
com.google.inject.spi |
Guice service provider interface
|
com.google.inject.util |
Helper methods for working with Guice.
|
Modifier and Type | Interface and Description |
---|---|
interface |
Binding<T>
A mapping from a key (type and optional annotation) to the strategy for getting instances of the
type.
|
Modifier and Type | Class and Description |
---|---|
class |
BindingImpl<T> |
(package private) class |
ConstructorBindingImpl<T> |
class |
ExposedBindingImpl<T> |
private static class |
InjectorImpl.ConvertedConstantBindingImpl<T> |
private static class |
InjectorImpl.ProviderBindingImpl<T> |
(package private) class |
InstanceBindingImpl<T> |
class |
LinkedBindingImpl<T> |
(package private) class |
LinkedProviderBindingImpl<T> |
class |
PrivateElementsImpl |
(package private) class |
ProviderInstanceBindingImpl<T> |
private static class |
ProviderMethod.ProviderMethodProviderInstanceBindingImpl<T> |
(package private) class |
UntargettedBindingImpl<T> |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Element> |
AbstractBindingBuilder.elements |
private java.util.List<Element> |
InjectorShell.elements |
private java.util.List<Element> |
InjectorShell.Builder.elements |
private com.google.common.collect.ImmutableList<Element> |
PrivateElementsImpl.elements
lazily instantiated
|
private java.util.List<Element> |
PrivateElementsImpl.elementsMutable |
private java.util.List<Element> |
DeferredLookups.lookups |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.List<Element> |
InjectorShell.getElements() |
java.util.List<Element> |
PrivateElementsImpl.getElements() |
java.util.List<Element> |
PrivateElementsImpl.getElementsMutable() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Boolean |
AbstractProcessor.visitOther(Element element) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractProcessor.process(InjectorImpl injector,
java.util.List<Element> elements) |
Constructor and Description |
---|
AbstractBindingBuilder(Binder binder,
java.util.List<Element> elements,
java.lang.Object source,
Key<T> key) |
BindingBuilder(Binder binder,
java.util.List<Element> elements,
java.lang.Object source,
Key<T> key) |
ConstantBindingBuilderImpl(Binder binder,
java.util.List<Element> elements,
java.lang.Object source) |
InjectorShell(InjectorShell.Builder builder,
java.util.List<Element> elements,
InjectorImpl injector) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
MapBinder.RealMapBinder.containsElement(Element element) |
boolean |
MapBinder.RealMapBinder.RealMapProvider.containsElement(Element element) |
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 |
Multibinder.RealMultibinder.containsElement(Element element) |
boolean |
MultibinderBinding.containsElement(Element element)
Returns true if this Multibinder uses the given Element.
|
private boolean |
OptionalBinder.RealOptionalBinder.containsElement(Element element) |
boolean |
OptionalBinder.RealOptionalBinder.JavaOptionalProvider.containsElement(Element element) |
boolean |
OptionalBinder.RealOptionalBinder.RealOptionalKeyProvider.containsElement(Element 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.
|
private boolean |
OptionalBinder.RealOptionalBinder.matchesTypeKey(Element element,
Key<?> elementKey)
Returns true if the key & element indicate they were bound by this OptionalBinder.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConstructorBinding<T>
A binding to the constructor of a concrete clss.
|
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 a
Provider 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.
|
Modifier and Type | Class and 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 occured.
|
class |
ModuleAnnotatedMethodScannerBinding
Represents a call to
Binder.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.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.Iterable<? extends Element> |
Elements.ElementsAsModule.elements |
private java.util.List<Element> |
Elements.RecordingBinder.elements |
Modifier and Type | Method and Description |
---|---|
java.util.List<Element> |
PrivateElements.getElements()
Returns the configuration information in this private environment.
|
static java.util.List<Element> |
Elements.getElements(java.lang.Iterable<? extends Module> modules)
Records the elements executed by
modules . |
static java.util.List<Element> |
Elements.getElements(Module... modules)
Records the elements executed by
modules . |
static java.util.List<Element> |
Elements.getElements(Stage stage,
java.lang.Iterable<? extends Module> modules)
Records the elements executed by
modules . |
static java.util.List<Element> |
Elements.getElements(Stage stage,
Module... modules)
Records the elements executed by
modules . |
Modifier and Type | Method and Description |
---|---|
protected V |
DefaultElementVisitor.visitOther(Element element)
Default visit implementation.
|
Modifier and Type | Method and Description |
---|---|
static Module |
Elements.getModule(java.lang.Iterable<? extends Element> elements)
Returns the module composed of
elements . |
Constructor and Description |
---|
ElementsAsModule(java.lang.Iterable<? extends Element> elements) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Void |
Modules.ModuleWriter.visitOther(Element element) |
Modifier and Type | Method and Description |
---|---|
private static Module |
Modules.extractScanners(java.lang.Iterable<Element> elements) |
(package private) void |
Modules.ModuleWriter.writeAll(java.lang.Iterable<? extends Element> elements) |