接口 BindContext
public interface BindContext
Context information for use by
BindHandlers.- 从以下版本开始:
- 2.0.0
- 作者:
- Phillip Webb, Madhura Bhave
-
方法概要
修饰符和类型方法说明Return the source binder that is performing the bind operation.Return theConfigurationPropertyactually being bound ornullif the property has not yet been determined.intgetDepth()Return the current depth of the binding.
-
方法详细资料
-
getBinder
Binder getBinder()Return the source binder that is performing the bind operation.- 返回:
- 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.- 返回:
- the depth of the current binding
-
getSources
Iterable<ConfigurationPropertySource> getSources()- 返回:
- the sources
-
getConfigurationProperty
ConfigurationProperty getConfigurationProperty()Return theConfigurationPropertyactually being bound ornullif the property has not yet been determined.- 返回:
- the configuration property (may be
null).
-