com.google.inject.PrivateBinder |
Returns a binder whose configuration information is hidden from its environment by default. See
PrivateModule
for details.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Makes a binding for
type available to the enclosing environment. | |||||||||||
Makes the binding for
key available to the enclosing environment | |||||||||||
Makes a binding for
type available to the enclosing environment. | |||||||||||
Returns a binder that skips
classesToSkip when identify the
calling code. | |||||||||||
Returns a binder that uses
source as the reference location for
configuration errors. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Makes a binding for type
available to the enclosing environment. Use annotatedWith()
to expose type
with a
binding annotation.
Makes the binding for key
available to the enclosing environment
Makes a binding for type
available to the enclosing environment. Use annotatedWith()
to expose type
with a
binding annotation.
Returns a binder that skips classesToSkip
when identify the
calling code. The caller's StackTraceElement is used to locate
the source of configuration errors.
classesToSkip | library classes that create bindings on behalf of their clients. |
---|
Returns a binder that uses source
as the reference location for
configuration errors. This is typically a StackTraceElement
for .java
source but it could any binding source, such as the
path to a .properties
file.
source | any object representing the source location and has a
concise toString() value |
---|