spring-cloud-commons icon indicating copy to clipboard operation
spring-cloud-commons copied to clipboard

Suggest providing an interface for the ConfigurationPropertiesRebinder class

Open ethanzhl opened this issue 1 year ago • 0 comments

I want to implement a listener that, upon detecting a certain event, triggers the rebind method of the ConfigurationPropertiesRebinder class. After the rebind method completes its execution, I would like to perform some custom processing, such as publishing a custom event to inform other listeners that the configuration properties have been re-bound. This will allow the listeners to obtain the latest configuration properties and take appropriate actions.

Currently, ConfigurationPropertiesRebinder itself implements the ApplicationListener interface and listens for EnvironmentChangeEvent events, which prevents me from implementing the above functionality.

Therefore, would you consider providing the aforementioned functionality? I look forward to your reply. Thank you.

ethanzhl avatar Aug 17 '24 14:08 ethanzhl