Class ConfigurationPropertiesBindConstructorProvider
java.lang.Object
org.springframework.boot.context.properties.ConfigurationPropertiesBindConstructorProvider
- All Implemented Interfaces:
BindConstructorProvider
public class ConfigurationPropertiesBindConstructorProvider
extends Object
implements BindConstructorProvider
BindConstructorProvider
used when binding
@ConfigurationProperties
.- Since:
- 3.0.0
- Author:
- Madhura Bhave, Phillip Webb
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ConfigurationPropertiesBindConstructorProvider
A shared singletonConfigurationPropertiesBindConstructorProvider
instance.Fields inherited from interface org.springframework.boot.context.properties.bind.BindConstructorProvider
DEFAULT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionConstructor<?>
getBindConstructor
(Bindable<?> bindable, boolean isNestedConstructorBinding) Return the bind constructor to use for the given bindable, ornull
if constructor binding is not supported.
-
Field Details
-
INSTANCE
A shared singletonConfigurationPropertiesBindConstructorProvider
instance.
-
-
Constructor Details
-
ConfigurationPropertiesBindConstructorProvider
public ConfigurationPropertiesBindConstructorProvider()
-
-
Method Details
-
getBindConstructor
Description copied from interface:BindConstructorProvider
Return the bind constructor to use for the given bindable, ornull
if constructor binding is not supported.- Specified by:
getBindConstructor
in interfaceBindConstructorProvider
- Parameters:
bindable
- the bindable to checkisNestedConstructorBinding
- if this binding is nested within a constructor binding- Returns:
- the bind constructor or
null
-