Package | Description |
---|---|
com.google.inject |
Google Guice (pronounced "juice") is an ultra-lightweight dependency injection framework.
|
com.google.inject.binder |
Interfaces which make up
Binder 's expression language. |
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 . |
Modifier and Type | Method and Description |
---|---|
protected <T> LinkedBindingBuilder<T> |
AbstractModule.bind(Key<T> key) |
protected <T> LinkedBindingBuilder<T> |
PrivateModule.bind(Key<T> key) |
<T> LinkedBindingBuilder<T> |
Binder.bind(Key<T> key)
See the EDSL examples at
Binder . |
Modifier and Type | Interface and Description |
---|---|
interface |
AnnotatedBindingBuilder<T>
See the EDSL examples at
Binder . |
Modifier and Type | Method and Description |
---|---|
LinkedBindingBuilder<T> |
AnnotatedBindingBuilder.annotatedWith(Annotation annotation)
See the EDSL examples at
Binder . |
LinkedBindingBuilder<T> |
AnnotatedBindingBuilder.annotatedWith(Class<? extends Annotation> annotationType)
See the EDSL examples at
Binder . |
Modifier and Type | Class and Description |
---|---|
class |
BindingBuilder<T>
Bind a non-constant key.
|
Modifier and Type | Method and Description |
---|---|
LinkedBindingBuilder<T> |
RealMultibinder.addBinding() |
LinkedBindingBuilder<V> |
RealMapBinder.addBinding(K key)
This creates two bindings.
|
LinkedBindingBuilder<T> |
RealOptionalBinder.setBinding() |
LinkedBindingBuilder<T> |
RealOptionalBinder.setDefault() |
Modifier and Type | Method and Description |
---|---|
LinkedBindingBuilder<T> |
Multibinder.addBinding()
Returns a binding builder used to add a new element in the set.
|
LinkedBindingBuilder<V> |
MapBinder.addBinding(K key)
Returns a binding builder used to add a new entry in the map.
|
LinkedBindingBuilder<T> |
OptionalBinder.setBinding()
Returns a binding builder used to set the actual value that will be injected.
|
LinkedBindingBuilder<T> |
OptionalBinder.setDefault()
Returns a binding builder used to set the default value that will be injected.
|
Copyright © 2006–2018 Google, Inc.. All rights reserved.