Skip to content

Suggest providing an interface for the ConfigurationPropertiesRebinder class #1369

@ethanzhl

Description

@ethanzhl

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions