-
Notifications
You must be signed in to change notification settings - Fork 827
JAV-196 Configuration of config center url #96
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
JAV-196 Configuration of config center url #96
Conversation
make function of ConfigUtil more clear, easy to use.
add test case for reinstall dynamic config checking.
add test case for ConfigUtil lost scenes.
change config center configuration source from WatchedConfigurationSource to new interface: ConfigCenterConfigurationSource provide a "init" method with parameter local config, that avoid config center SPI implementation recreate local config
d21bb04
to
d579954
Compare
Changes Unknown when pulling d579954 on wujimin:configuration-of-config-center-url into ** on ServiceComb:master**. |
private static final Logger LOGGER = LoggerFactory.getLogger(ConfigUtil.class); | ||
|
||
private static final String configCenterUrlKey = "cse.config.client.serverUri"; | ||
protected static final String configCenterUrlKey = "cse.config.client.serverUri"; |
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.
对于final class,不应该有protected方法
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.
share for unit test.
Hi jiming, there are some changes on the ConfigUtil. Could you update the code and resolve the conflicts? |
…into configuration-of-config-center-url # Conflicts: # foundations/foundation-config/src/main/java/io/servicecomb/config/ConfigUtil.java # foundations/foundation-config/src/test/java/io/servicecomb/config/TestConfigUtil.java # foundations/foundation-config/src/test/java/io/servicecomb/config/TestConfigurationSpringInitializer.java
config value maybe a list, can not use getString
resolved conflicts |
1.read config center url from local config data, that include microservice.yaml/additional config/environment/command parameters
2.discuss with config-cc, modify SPI interface, not use WatchedConfigurationSource directly, but extend it, add method: void init(Configuration localConfig), to avoid create another configration instance and reduce api of create configration coupling