Package com.google.inject.internal
Class RealOptionalBinder<T>
- java.lang.Object
-
- com.google.inject.internal.RealOptionalBinder<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Binder binder)
Contributes bindings and other configurations for this module tobinder
.boolean
equals(Object o)
int
hashCode()
static <T> RealOptionalBinder<T>
newRealOptionalBinder(Binder binder, Key<T> type)
LinkedBindingBuilder<T>
setBinding()
LinkedBindingBuilder<T>
setDefault()
-
-
-
Method Detail
-
newRealOptionalBinder
public static <T> RealOptionalBinder<T> newRealOptionalBinder(Binder binder, Key<T> type)
-
setDefault
public LinkedBindingBuilder<T> setDefault()
-
setBinding
public LinkedBindingBuilder<T> setBinding()
-
configure
public void configure(Binder binder)
Description copied from interface:Module
Contributes bindings and other configurations for this module tobinder
.Do not invoke this method directly to install submodules. Instead use
Binder.install(Module)
, which ensures thatprovider methods
are discovered.
-
-