Uses of Class
com.google.inject.multibindings.Multibinder
Packages that use Multibinder
Package
Description
Extension for binding multiple instances in a collection; this extension requires
guice-multibindings.jar
.-
Uses of Multibinder in com.google.inject.multibindings
Methods in com.google.inject.multibindings that return MultibinderModifier and TypeMethodDescriptionstatic <T> Multibinder<T>
Multibinder.newSetBinder
(Binder binder, Key<T> key) Returns a new multibinder that collects instances of the key's type in aSet
that is itself bound with the annotation (if any) of the key.static <T> Multibinder<T>
Multibinder.newSetBinder
(Binder binder, TypeLiteral<T> type) Returns a new multibinder that collects instances oftype
in aSet
that is itself bound with no binding annotation.static <T> Multibinder<T>
Multibinder.newSetBinder
(Binder binder, TypeLiteral<T> type, Annotation annotation) Returns a new multibinder that collects instances oftype
in aSet
that is itself bound withannotation
.static <T> Multibinder<T>
Multibinder.newSetBinder
(Binder binder, TypeLiteral<T> type, Class<? extends Annotation> annotationType) Returns a new multibinder that collects instances oftype
in aSet
that is itself bound withannotationType
.static <T> Multibinder<T>
Multibinder.newSetBinder
(Binder binder, Class<T> type) Returns a new multibinder that collects instances oftype
in aSet
that is itself bound with no binding annotation.static <T> Multibinder<T>
Multibinder.newSetBinder
(Binder binder, Class<T> type, Annotation annotation) Returns a new multibinder that collects instances oftype
in aSet
that is itself bound withannotation
.static <T> Multibinder<T>
Multibinder.newSetBinder
(Binder binder, Class<T> type, Class<? extends Annotation> annotationType) Returns a new multibinder that collects instances oftype
in aSet
that is itself bound withannotationType
.Multibinder.permitDuplicates()
Configures the bound set to silently discard duplicate elements.