接口 BindContext
public interface BindContext
Context information for use byBindHandlers
.- 从以下版本开始:
- 2.0.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Binder
getBinder()
Return the source binder that is performing the bind operation.ConfigurationProperty
getConfigurationProperty()
Return theConfigurationProperty
actually being bound ornull
if the property has not yet been determined.int
getDepth()
Return the current depth of the binding.Iterable<ConfigurationPropertySource>
getSources()
方法详细资料
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 theConfigurationProperty
actually being bound ornull
if the property has not yet been determined.- 返回:
- the configuration property (may be
null
).