接口 DubboConfigBinder
-
- 所有超级接口:
org.springframework.beans.factory.Aware
,org.springframework.context.EnvironmentAware
public interface DubboConfigBinder extends org.springframework.context.EnvironmentAware
DubboConfig
Binder- 从以下版本开始:
- 2.5.11
- 另请参阅:
AbstractConfig
,EnvironmentAware
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 <C extends AbstractConfig>
voidbind(String prefix, C dubboConfig)
Bind the properties to Dubbo Config Object under specified prefix.void
setIgnoreInvalidFields(boolean ignoreInvalidFields)
Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).void
setIgnoreUnknownFields(boolean ignoreUnknownFields)
Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.
-
-
-
方法详细资料
-
setIgnoreUnknownFields
void setIgnoreUnknownFields(boolean ignoreUnknownFields)
Set whether to ignore unknown fields, that is, whether to ignore bind parameters that do not have corresponding fields in the target object.Default is "true". Turn this off to enforce that all bind parameters must have a matching field in the target object.
-
setIgnoreInvalidFields
void setIgnoreInvalidFields(boolean ignoreInvalidFields)
Set whether to ignore invalid fields, that is, whether to ignore bind parameters that have corresponding fields in the target object which are not accessible (for example because of null values in the nested path).Default is "false".
-
bind
<C extends AbstractConfig> void bind(String prefix, C dubboConfig)
Bind the properties to Dubbo Config Object under specified prefix.- 参数:
prefix
-dubboConfig
-
-
-