Interface ConfigurationBeanBinder
-
- All Known Implementing Classes:
DefaultConfigurationBeanBinder
public interface ConfigurationBeanBinder
The binder for the configuration bean- Since:
- 1.0.0
- Author:
- Mercy
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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 theEnvironment
to Configuration bean under specified prefix.default void
setConversionService(org.springframework.core.convert.ConversionService conversionService)
Set theConversionService
-
-
-
Method Detail
-
bind
void bind(java.util.Map<java.lang.String,java.lang.Object> configurationProperties, boolean ignoreUnknownFields, boolean ignoreInvalidFields, java.lang.Object configurationBean)
Bind the properties in theEnvironment
to Configuration bean under specified prefix.- Parameters:
configurationProperties
- The configuration propertiesignoreUnknownFields
- whether to ignore unknown fields, the value is come from the attribute ofEnableConfigurationBeanBinding.ignoreUnknownFields()
ignoreInvalidFields
- whether to ignore invalid fields, the value is come from the attribute ofEnableConfigurationBeanBinding.ignoreInvalidFields()
configurationBean
- the bean of configuration
-
setConversionService
default void setConversionService(@Nullable org.springframework.core.convert.ConversionService conversionService)
Set theConversionService
- Parameters:
conversionService
-ConversionService
-
-