Interface BindContext
public interface BindContext
Context information for use by
BindHandlers
.- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionReturn the source binder that is performing the bind operation.Return theConfigurationProperty
actually being bound ornull
if the property has not yet been determined.int
getDepth()
Return the current depth of the binding.
-
Method Details
-
getBinder
Binder getBinder()Return the source binder that is performing the bind operation.- Returns:
- the source binder
-
getDepth
int getDepth()Return the current depth of the binding. Root binding starts with a depth of0
. Each subsequent property binding increases the depth by1
.- Returns:
- the depth of the current binding
-
getSources
Iterable<ConfigurationPropertySource> getSources()- Returns:
- the sources
-
getConfigurationProperty
ConfigurationProperty getConfigurationProperty()Return theConfigurationProperty
actually being bound ornull
if the property has not yet been determined.- Returns:
- the configuration property (may be
null
).
-