Class DefaultConfigurationBeanBinder

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(java.util.Map<java.lang.String,​java.lang.Object> configurationProperties, boolean ignoreUnknownFields, boolean ignoreInvalidFields, java.lang.Object configurationBean)
      Bind the properties in the Environment to Configuration bean under specified prefix.
      void setConversionService​(org.springframework.core.convert.ConversionService conversionService)
      Set the ConversionService
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultConfigurationBeanBinder

        public DefaultConfigurationBeanBinder()
    • Method Detail

      • setConversionService

        public void setConversionService​(org.springframework.core.convert.ConversionService conversionService)
        Description copied from interface: ConfigurationBeanBinder
        Set the ConversionService
        Specified by:
        setConversionService in interface ConfigurationBeanBinder
        Parameters:
        conversionService - ConversionService
      • bind

        public void bind​(java.util.Map<java.lang.String,​java.lang.Object> configurationProperties,
                         boolean ignoreUnknownFields,
                         boolean ignoreInvalidFields,
                         java.lang.Object configurationBean)
        Description copied from interface: ConfigurationBeanBinder
        Bind the properties in the Environment to Configuration bean under specified prefix.
        Specified by:
        bind in interface ConfigurationBeanBinder
        Parameters:
        configurationProperties - The configuration properties
        ignoreUnknownFields - whether to ignore unknown fields, the value is come from the attribute of EnableConfigurationBeanBinding.ignoreUnknownFields()
        ignoreInvalidFields - whether to ignore invalid fields, the value is come from the attribute of EnableConfigurationBeanBinding.ignoreInvalidFields()
        configurationBean - the bean of configuration