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
Since:
2.5.11
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    <C extends AbstractConfig>
    void
    bind(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.

    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

      <C extends AbstractConfig> void bind(String prefix, C dubboConfig)
      Bind the properties to Dubbo Config Object under specified prefix.
      Parameters:
      prefix -
      dubboConfig -