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 voidconfigure(Binder binder)Contributes bindings and other configurations for this module tobinder.booleanequals(Object o)inthashCode()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:ModuleContributes 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 methodsare discovered.
-
-