Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
|
com.google.inject.internal |
Guice (sounds 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
|
Modifier and Type | Interface | 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 | Description |
---|---|---|
class |
BindingImpl<T> |
|
class |
ExposedBindingImpl<T> |
|
class |
LinkedBindingImpl<T> |
|
class |
PrivateElementsImpl |
Modifier and Type | Field | Description |
---|---|---|
protected List<Element> |
AbstractBindingBuilder.elements |
Modifier and Type | Method | Description |
---|---|---|
List<Element> |
PrivateElementsImpl.getElements() |
|
List<Element> |
PrivateElementsImpl.getElementsMutable() |
Constructor | Description |
---|---|
AbstractBindingBuilder(Binder binder,
List<Element> elements,
Object source,
Key<T> key) |
|
BindingBuilder(Binder binder,
List<Element> elements,
Object source,
Key<T> key) |
|
ConstantBindingBuilderImpl(Binder binder,
List<Element> elements,
Object source) |
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.
|
Modifier and Type | Method | Description |
---|---|---|
List<Map.Entry<?,Binding<?>>> |
MapBinderBinding.getEntries(Iterable<? extends Element> elements) |
Similar to
MapBinderBinding.getEntries() , but can be used on a MapBinderBinding retrieved from Elements.getElements(com.google.inject.Module...) . |
Modifier and Type | Interface | 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 | 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 | Method | Description |
---|---|---|
static List<Element> |
Elements.getElements(Module... modules) |
Records the elements executed by
modules . |
static List<Element> |
Elements.getElements(Stage stage,
Module... modules) |
Records the elements executed by
modules . |
static List<Element> |
Elements.getElements(Stage stage,
Iterable<? extends Module> modules) |
Records the elements executed by
modules . |
static List<Element> |
Elements.getElements(Iterable<? extends Module> modules) |
Records the elements executed by
modules . |
List<Element> |
PrivateElements.getElements() |
Returns the configuration information in this private environment.
|
Modifier and Type | Method | Description |
---|---|---|
protected V |
DefaultElementVisitor.visitOther(Element element) |
Default visit implementation.
|
Modifier and Type | Method | Description |
---|---|---|
static Module |
Elements.getModule(Iterable<? extends Element> elements) |
Returns the module composed of
elements . |
Copyright © 2006–2018 Google, Inc.. All rights reserved.