Interface DubboConfigBinder
- All Superinterfaces:
org.springframework.beans.factory.Aware,org.springframework.context.EnvironmentAware
- All Known Implementing Classes:
AbstractDubboConfigBinder,DefaultDubboConfigBinder
public interface DubboConfigBinder
extends org.springframework.context.EnvironmentAware
DubboConfig Binder- Since:
- 2.5.11
- See Also:
-
Method Summary
Modifier and TypeMethodDescription<C extends AbstractConfig>
voidBind the properties to Dubbo Config Object under specified prefix.voidsetIgnoreInvalidFields(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).voidsetIgnoreUnknownFields(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.Methods inherited from interface org.springframework.context.EnvironmentAware
setEnvironment
-
Method Details
-
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.
- See Also:
-
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".
- See Also:
-
bind
Bind the properties to Dubbo Config Object under specified prefix.- Parameters:
prefix-dubboConfig-
-