You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/04/03 13:41:39 UTC
[GitHub] WillemJiang commented on a change in pull request #632: [SCB-456]Provider a way to input configuration from a Map
WillemJiang commented on a change in pull request #632: [SCB-456]Provider a way to input configuration from a Map
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/632#discussion_r178827369
##########
File path: foundations/foundation-config/src/main/java/org/apache/servicecomb/config/ConfigUtil.java
##########
@@ -52,9 +52,15 @@
private static final String MICROSERVICE_CONFIG_LOADER_KEY = "cse-microservice-config-loader";
+ private static ConfigModel model = new ConfigModel();
+
private ConfigUtil() {
}
+ public static void addConfigs(Map<String, Object> config) {
Review comment:
As this method is just set the internal cofigModel, it's better to use setConfigs instead of addConfigs.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services