-
-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Broadcast ConfigChangeEvent using Spring ApplicationEvent #4305
Broadcast ConfigChangeEvent using Spring ApplicationEvent #4305
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4305 +/- ##
============================================
+ Coverage 53.17% 53.21% +0.03%
- Complexity 2668 2673 +5
============================================
Files 488 489 +1
Lines 15253 15267 +14
Branches 1577 1576 -1
============================================
+ Hits 8111 8124 +13
Misses 6587 6587
- Partials 555 556 +1
Continue to review full report at Codecov.
|
Why not consider implementing the configuration auto-refresh mechanism based on |
This is an interesting idea. |
Thank you for your answer, that whether to consider separating the client sdk, such as java version, spring version, spring boot version, spring cloud and so on version of the sdk. |
We already had such discussions that ultimately there might be 3 java SDKs: apollo-client, apollo-client-config-data, spring-cloud-apollo-client(this name is not finalized). |
7232497
to
e33eb58
Compare
e33eb58
to
6ed574c
Compare
I have updated the logic to broadcast the config change event using Spring ApplicationEvent, which should be more natural and easy to customize. Please help to take a look. |
6ed574c
to
41f1189
Compare
...src/main/java/com/ctrip/framework/apollo/spring/property/AutoUpdateConfigChangeListener.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What's the purpose of this PR
Broadcast ConfigChangeEvent using Spring ApplicationEvent so that it's easy to customize the logic to handle config changes.
Brief changelog
Follow this checklist to help us incorporate your contribution quickly and easily:
mvn clean test
to make sure this pull request doesn't break anything.CHANGES
log.