Uses of Class
com.google.inject.multibindings.MapBinder
Packages that use MapBinder
Package
Description
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar
.-
Uses of MapBinder in com.google.inject.multibindings
Methods in com.google.inject.multibindings that return MapBinderModifier and TypeMethodDescriptionstatic <K,
V> MapBinder<K, V> MapBinder.newMapBinder
(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType) Returns a new mapbinder that collects entries ofkeyType
/valueType
in aMap
that is itself bound with no binding annotation.static <K,
V> MapBinder<K, V> MapBinder.newMapBinder
(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Annotation annotation) Returns a new mapbinder that collects entries ofkeyType
/valueType
in aMap
that is itself bound withannotation
.static <K,
V> MapBinder<K, V> MapBinder.newMapBinder
(Binder binder, TypeLiteral<K> keyType, TypeLiteral<V> valueType, Class<? extends Annotation> annotationType) Returns a new mapbinder that collects entries ofkeyType
/valueType
in aMap
that is itself bound withannotationType
.static <K,
V> MapBinder<K, V> MapBinder.newMapBinder
(Binder binder, Class<K> keyType, Class<V> valueType) Returns a new mapbinder that collects entries ofkeyType
/valueType
in aMap
that is itself bound with no binding annotation.static <K,
V> MapBinder<K, V> MapBinder.newMapBinder
(Binder binder, Class<K> keyType, Class<V> valueType, Annotation annotation) Returns a new mapbinder that collects entries ofkeyType
/valueType
in aMap
that is itself bound withannotation
.static <K,
V> MapBinder<K, V> MapBinder.newMapBinder
(Binder binder, Class<K> keyType, Class<V> valueType, Class<? extends Annotation> annotationType) Returns a new mapbinder that collects entries ofkeyType
/valueType
in aMap
that is itself bound withannotationType
.MapBinder.permitDuplicates()
Configures theMapBinder
to handle duplicate entries.