Package com.google.inject.internal
Class RealOptionalBinder<T>
java.lang.Object
com.google.inject.internal.RealOptionalBinder<T>
- All Implemented Interfaces:
Module
The actual OptionalBinder plays several roles. It implements Module to hide that fact from the
public API, and installs the various bindings that are exposed to the user.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Contributes bindings and other configurations for this module tobinder
.boolean
int
hashCode()
static <T> RealOptionalBinder
<T> newRealOptionalBinder
(Binder binder, Key<T> type)
-
Method Details
-
newRealOptionalBinder
-
setDefault
-
setBinding
-
configure
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. -
equals
-
hashCode
public int hashCode()
-