Skip to content

@ConfigurationPropertiesBinding does not apply Formatter beans #23576

@odrotbohm

Description

@odrotbohm

I have a bean that implements Formatter that is supposed to also implement Converter as I need it to be considered for application property binding as well and I can simply forward the call to convert(…) to the parse(…) method of the converter.

Doing that causes the instance not to be registered as Formatter anymore as ApplicationConversionService.addBeans(…) uses an if-else cascade to forward the registration calls. Any particular reason it does not simply use a sequence of ifs?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions