Returns a binding builder used to set the actual value that will be injected.
Returns a binding builder used to set the actual value that will be injected.
This overrides any binding set by setDefault
.
It is an error to call this method without also calling one of the to
methods on the returned binding builder.
Returns a binding builder used to set the default value that will be injected.
Returns a binding builder used to set the default value that will be injected.
The binding set by this method will be ignored if setBinding
is called.
It is an error to call this method without also calling one of the to
methods on the returned binding builder.
Analog to Guice's OptionalBinder
Use ScalaOptionBinder.newOptionBinder to create an option binder that is scala friendly.