You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/05/29 01:18:54 UTC

[GitHub] [servicecomb-docs] yhs0092 commented on a change in pull request #104: 配置注入的文档实现修改

yhs0092 commented on a change in pull request #104: 配置注入的文档实现修改
URL: https://github.com/apache/servicecomb-docs/pull/104#discussion_r288012469
 
 

 ##########
 File path: java-chassis-reference/en_US/config/inject-config.md
 ##########
 @@ -63,7 +63,7 @@ We can execute injection with the following sample code:
 Inject configuration properties into objects without `InjectProperties` and `InjectProperty` annotations:
 
 ```Java
-ConfigNoAnnotation config = new ConfigObjectFactory().create(ConfigNoAnnotation.class);
+ConfigNoAnnotation config = priorityPropertyManager.createConfigObject(ConfigNoAnnotation.class);
 
 Review comment:
   It's better to show how to get the instance of `PriorityPropertyManager`. You can get example from `org.apache.servicecomb.core.definition.OperationMeta#init`, a config object is created here : )

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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