Binder

constructor(sources: Array<ConfigurationPropertySource>)
constructor(sources: Iterable<ConfigurationPropertySource>)

Create a new Binder instance for the specified sources. A DefaultFormattingConversionService will be used for all conversion.

Parameters

sources

the sources used for binding


constructor(sources: Iterable<ConfigurationPropertySource>, placeholdersResolver: PlaceholdersResolver)

Create a new Binder instance for the specified sources.

Parameters

sources

the sources used for binding

placeholdersResolver

strategy to resolve any property placeholders


constructor(sources: Iterable<ConfigurationPropertySource>, placeholdersResolver: PlaceholdersResolver, conversionService: ConversionService)

Create a new Binder instance for the specified sources.

Parameters

sources

the sources used for binding

placeholdersResolver

strategy to resolve any property placeholders

conversionService

the conversion service to convert values (or null to use ApplicationConversionService)


constructor(sources: Iterable<ConfigurationPropertySource>, placeholdersResolver: PlaceholdersResolver, conversionService: ConversionService, propertyEditorInitializer: Consumer<PropertyEditorRegistry>)

Create a new Binder instance for the specified sources.

Parameters

sources

the sources used for binding

placeholdersResolver

strategy to resolve any property placeholders

conversionService

the conversion service to convert values (or null to use ApplicationConversionService)

propertyEditorInitializer

initializer used to configure the property editorsthat can convert values (or null if no initialization is required). Oftenused to call copyRegisteredEditorsTo.


constructor(sources: Iterable<ConfigurationPropertySource>, placeholdersResolver: PlaceholdersResolver, conversionService: ConversionService, propertyEditorInitializer: Consumer<PropertyEditorRegistry>, defaultBindHandler: BindHandler)

Create a new Binder instance for the specified sources.

Since

2.2.0

Parameters

sources

the sources used for binding

placeholdersResolver

strategy to resolve any property placeholders

conversionService

the conversion service to convert values (or null to use ApplicationConversionService)

propertyEditorInitializer

initializer used to configure the property editorsthat can convert values (or null if no initialization is required). Oftenused to call copyRegisteredEditorsTo.

defaultBindHandler

the default bind handler to use if none is specified whenbinding


constructor(sources: Iterable<ConfigurationPropertySource>, placeholdersResolver: PlaceholdersResolver, conversionService: ConversionService, propertyEditorInitializer: Consumer<PropertyEditorRegistry>, defaultBindHandler: BindHandler, constructorProvider: BindConstructorProvider)

Create a new Binder instance for the specified sources.

Since

2.2.1

Parameters

sources

the sources used for binding

placeholdersResolver

strategy to resolve any property placeholders

conversionService

the conversion service to convert values (or null to use ApplicationConversionService)

propertyEditorInitializer

initializer used to configure the property editorsthat can convert values (or null if no initialization is required). Oftenused to call copyRegisteredEditorsTo.

defaultBindHandler

the default bind handler to use if none is specified whenbinding

constructorProvider

the constructor provider which provides the bindconstructor to use when binding


constructor(sources: Iterable<ConfigurationPropertySource>, placeholdersResolver: PlaceholdersResolver, conversionServices: List<ConversionService>, propertyEditorInitializer: Consumer<PropertyEditorRegistry>, defaultBindHandler: BindHandler, constructorProvider: BindConstructorProvider)

Create a new Binder instance for the specified sources.

Since

2.5.0

Parameters

sources

the sources used for binding

placeholdersResolver

strategy to resolve any property placeholders

conversionServices

the conversion services to convert values (or null to use ApplicationConversionService)

propertyEditorInitializer

initializer used to configure the property editorsthat can convert values (or null if no initialization is required). Oftenused to call copyRegisteredEditorsTo.

defaultBindHandler

the default bind handler to use if none is specified whenbinding

constructorProvider

the constructor provider which provides the bindconstructor to use when binding