spring-cloud / spring-cloud/spring-cloud-commons

Suggest providing an interface for the ConfigurationPropertiesRebinder class

Open
#1,369 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
751
Forks
744
Avg merge
1d 14h
Merged PRs (30d)
9

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the ConfigurationPropertiesRebinder class and its rebind method, then examine how it currently implements ApplicationListener for EnvironmentChangeEvent. Define what interface or lifecycle hook would let callers trigger rebinding and perform processing afterward; the issue is done when that requested extension is clearly supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.