ConfigurationPropertiesBindingPostProcessorRegistrar is deprecated and the replacement is not an API, but an annotation (@EnableConfigurationProperties). This isn't great for people who want to avoid @Configuration, which seems perfectly valid, given the existence of the functional bean registration style. I think Spring Fu and Spring Cloud Function are working around this in various ways. I found in my benchmarks that ConfigurationPropertiesBindingPostProcessor.register() is public and is "good enough", but it isn't mentioned in the deprecation docs, and it doesn't go as far as the (now) private utility classes that Spring Boot is using internally.

Comment From: sdeleuze

That's indeed an area where I had to duplicate Spring Boot classes to make them public in Spring Fu. I would be great to be able to use a more first class mechanism to leverage configuration properties programmatically.

Comment From: snicoll

For constructor binding there is ConstructorBound. Is that the kind of API you had in mind?

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.