Package org.elasticsearch.common.inject
Interface PrivateBinder
- All Superinterfaces:
Binder
Returns a binder whose configuration information is hidden from its environment by default.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Makes the binding forkey
available to the enclosing environmentskipSources
(Class<?>... classesToSkip) Returns a binder that skipsclassesToSkip
when identify the calling code.withSource
(Object source) Returns a binder that usessource
as the reference location for configuration errors.
-
Method Details
-
expose
Makes the binding forkey
available to the enclosing environment -
withSource
Description copied from interface:Binder
Returns a binder that usessource
as the reference location for configuration errors. This is typically aStackTraceElement
for.java
source but it could any binding source, such as the path to a.properties
file.- Specified by:
withSource
in interfaceBinder
- Parameters:
source
- any object representing the source location and has a concisetoString()
value- Returns:
- a binder that shares its configuration with this binder
-
skipSources
Description copied from interface:Binder
Returns a binder that skipsclassesToSkip
when identify the calling code. The caller'sStackTraceElement
is used to locate the source of configuration errors.- Specified by:
skipSources
in interfaceBinder
- Parameters:
classesToSkip
- library classes that create bindings on behalf of their clients.- Returns:
- a binder that shares its configuration with this binder.
-