|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
Binder | Collects configuration information (primarily bindings) which will be
used to create an Injector . |
Binding<T> | A mapping from a key (type and optional annotation) to a provider of instances of that type. |
Injector | Fulfills requests for the object instances that make up your application, always ensuring that these instances are properly injected before they are returned. |
Module | A module contributes configuration information, typically interface
bindings, which will be used to create an Injector . |
Provider<T> | Simply, any object capable of providing instances of type T . |
Scope | A scope is a level of visibility that instances provided by Guice may have. |
Class Summary | |
---|---|
AbstractModule | A support class for Module s which reduces repetition and results in
a more readable configuration. |
Guice | The entry point to the Guice framework. |
Key<T> | Binding key consisting of an injection type and an optional annotation. |
Scopes | Built in scope implementations. |
TypeLiteral<T> | Represents a generic type T . |
Enum Summary | |
---|---|
Stage | The stage we're running in. |
Exception Summary | |
---|---|
CreationException | Thrown when errors occur while creating a Injector . |
Annotation Types Summary | |
---|---|
BindingAnnotation | Annotates annotations which are used for binding. |
ImplementedBy | A pointer to the default implementation of a type. |
Inject | Annotates members of your implementation class (constructors, methods
and fields) into which the Injector should inject values. |
ProvidedBy | A pointer to the default provider type for a type. |
ScopeAnnotation | Annotates annotations which are used for scoping. |
Singleton | Apply this to implementation classes when you want only one instance
(per Injector ) to be reused for all injections for that binding. |
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework. Please refer to the Guice User's Guide for a gentle introduction.
The principal public APIs in this package are:
Inject
Module
Binder
Module
to collect these bindings.
Provider
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |