(pronounced "juice") is an ultra-lightweight dependency injection framework. Please refer to the Guice
User's Guidefor a gentle introduction.
The principal public APIs in this package are:
Inject
Module
Binder
Module
to collect these bindings.
Provider
Collects configuration information (primarily
bindings) which will be used to create an
Injector
.
Binding<T>A mapping from a
Key
to the strategy for getting instances of the type.
InjectorBuilds the graphs of objects that make up your application.
MembersInjector<T>Injects dependencies into the fields and methods on instances of type T
.
A module contributes configuration information, typically interface bindings, which will be used to create an
Injector
.
PrivateBinderReturns a binder whose configuration information is hidden from its environment by default.
Provider<T>An object capable of providing instances of type T
.
A scope is a level of visibility that instances provided by Guice may have.
AbstractModule is a helper class used to add bindings to the Guice injector.
GuiceThe entry point to the Guice framework.
Key<T>Guice uses Key objects to identify a dependency that can be resolved by the Guice
Injector
.
PrivateModuleA module whose configuration information is hidden from its environment by default.
ScopesBuilt-in scope implementations.
TypeLiteral<T>Represents a generic type T
.
Annotates annotations which are used for binding.
ExposedAccompanies a @
Provides
method annotation in a private module to indicate that the provided binding is exposed.
ImplementedByA pointer to the default implementation of a type.
InjectAnnotates members of your implementation class (constructors, methods and fields) into which the
Injector
should inject values.
ProvidedByA pointer to the default provider type for a type.
ProvidesAnnotates methods of a
Module
to create a provider method binding.
RestrictedBindingSourceAnnotation restricting the binding of the target type to permitted sources.
RestrictedBindingSource.PermitMeta-annotation indicating that the target annotation is a permit for binding restricted bindings.
ScopeAnnotationAnnotates annotations which are used for scoping.
SingletonApply this to implementation classes when you want only one instance (per
Injector
) to be reused for all injections for that binding.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4