| Modifier and Type | Method and Description |
|---|---|
protected GinBinder |
AbstractGinModule.binder()
Gets direct access to the underlying
GinBinder. |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractGinModule.configure(GinBinder binder) |
void |
GinModule.configure(GinBinder binder)
Contributes bindings and other configurations for this module to
binder. |
void |
PrivateGinModule.configure(GinBinder binder) |
| Modifier and Type | Method and Description |
|---|---|
void |
FactoryModule.configure(GinBinder binder) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PrivateGinBinder
Extension of GinBinder that allows for exposing keys.
|
| Modifier and Type | Method and Description |
|---|---|
static <K,V> GinMapBinder<K,V> |
GinMapBinder.newMapBinder(GinBinder binder,
Class<K> keyType,
Class<V> valueType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with no binding annotation. |
static <K,V> GinMapBinder<K,V> |
GinMapBinder.newMapBinder(GinBinder binder,
Class<K> keyType,
Class<V> valueType,
Annotation annotation)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotation. |
static <K,V> GinMapBinder<K,V> |
GinMapBinder.newMapBinder(GinBinder binder,
Class<K> keyType,
Class<V> valueType,
Class<? extends Annotation> annotationType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotationType. |
static <K,V> GinMapBinder<K,V> |
GinMapBinder.newMapBinder(GinBinder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with no binding annotation. |
static <K,V> GinMapBinder<K,V> |
GinMapBinder.newMapBinder(GinBinder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Annotation annotation)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotation. |
static <K,V> GinMapBinder<K,V> |
GinMapBinder.newMapBinder(GinBinder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Class<? extends Annotation> annotationType)
Returns a new mapbinder that collects entries of
keyType/valueType in a
Map that is itself bound with annotationType. |
static <T> GinMultibinder<T> |
GinMultibinder.newSetBinder(GinBinder binder,
Class<T> type)
Returns a new multibinder that collects instances of
type in a Set
that is itself bound with no binding annotation. |
static <T> GinMultibinder<T> |
GinMultibinder.newSetBinder(GinBinder binder,
Class<T> type,
Annotation annotation)
Returns a new multibinder that collects instances of
type in a Set
that is itself bound with annotation. |
static <T> GinMultibinder<T> |
GinMultibinder.newSetBinder(GinBinder binder,
Class<T> type,
Class<? extends Annotation> annotationType)
Returns a new multibinder that collects instances of
type in a Set that is
itself bound with annotationType. |
static <T> GinMultibinder<T> |
GinMultibinder.newSetBinder(GinBinder binder,
TypeLiteral<T> type)
Returns a new multibinder that collects instances of
type in a Set
that is itself bound with no binding annotation. |
static <T> GinMultibinder<T> |
GinMultibinder.newSetBinder(GinBinder binder,
TypeLiteral<T> type,
Annotation annotation)
Returns a new multibinder that collects instances of
type in a Set
that is itself bound with annotation. |
static <T> GinMultibinder<T> |
GinMultibinder.newSetBinder(GinBinder binder,
TypeLiteral<T> type,
Class<? extends Annotation> annotationType)
Returns a new multibinder that collects instances of
type in a Set
that is itself bound with annotationType. |
| Constructor and Description |
|---|
GinMultibinder(GinBinder ginBinder,
TypeLiteral<T> elementType,
Key<Provider<T>> keyForMultibinding) |
| Modifier and Type | Class and Description |
|---|---|
class |
PrivateBinderAdapter
Provides the
PrivateGinBinder interface and adapts it to a regular Guice
PrivateBinder. |
Copyright © 2008–2018. All rights reserved.