Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest providing an interface for the ConfigurationPropertiesRebinder class #1369

Open
ethanzhl opened this issue Aug 17, 2024 · 0 comments

Comments

@ethanzhl
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants