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 TypeMethodDescriptionvoidContributes bindings and other configurations for this module tobinder.booleaninthashCode()static <T> RealOptionalBinder<T> newRealOptionalBinder(Binder binder, Key<T> type)
-
Method Details
-
newRealOptionalBinder
-
setDefault
-
setBinding
-
configure
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. -
equals
-
hashCode
public int hashCode()
-