net.codingwell.scalaguice.ScalaOptionBinder
See theScalaOptionBinder companion object Analog to Guice's OptionalBinder
Use ScalaOptionBinder.newOptionBinder to create an option binder that is scala friendly.
Attributes
- Companion:
- object
- Graph
- Supertypes
class Object
trait Matchable
class Any
Members list
Concise view
Value members
Returns a binding builder used to set the actual value that will be injected.
This overrides any binding set by setDefault
.
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.
Attributes
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.
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.
Attributes