Returns a binding builder used to add a new element in the set.
Returns a binding builder used to add a new element in the set. Each bound element must have a distinct value. Bound providers will be evaluated each time the set is injected.
It is an error to call this method without also calling one of the
to
methods on the returned binding builder.
Scoping elements independently is supported. Use the in
method
to specify a binding scope.
Configures the bound set to silently discard duplicate elements.
Configures the bound set to silently discard duplicate elements. When multiple equal values are bound, the one that gets included is arbitrary. When multiple modules contribute elements to the set, this configuration option impacts all of them.
this multibinder
3.0
Analog to Guice's Multibinder
Use ScalaMultibinder.newSetBinder to create a multibinder that is scala friendly.