Package | Description |
---|---|
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 |
---|---|
static <K,V> RealMapBinder<K,V> |
RealMapBinder.newMapRealBinder(Binder 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. |
(package private) static <K,V> RealMapBinder<K,V> |
RealMapBinder.newRealMapBinder(Binder binder,
TypeLiteral<K> keyType,
Key<V> valueTypeAndAnnotation) |
static <K,V> RealMapBinder<K,V> |
RealMapBinder.newRealMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
java.lang.annotation.Annotation annotation)
Returns a new mapbinder that collects entries of
keyType /valueType in a Map that is itself bound with annotation . |
static <K,V> RealMapBinder<K,V> |
RealMapBinder.newRealMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns a new mapbinder that collects entries of
keyType /valueType in a Map that is itself bound with annotationType . |
private static <K,V> RealMapBinder<K,V> |
RealMapBinder.newRealMapBinder(Binder binder,
TypeLiteral<K> keyType,
TypeLiteral<V> valueType,
Key<java.util.Map<K,V>> mapKey,
RealMultibinder<java.util.Map.Entry<K,Provider<V>>> entrySetBinder) |
Modifier and Type | Field and Description |
---|---|
private RealMapBinder<K,V> |
MapBinder.delegate |
Constructor and Description |
---|
MapBinder(RealMapBinder<K,V> delegate) |