-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
支持获取自定义的 Agent 启动参数 #163
支持获取自定义的 Agent 启动参数 #163
Conversation
dadiyang
commented
Apr 12, 2019
•
edited
Loading
edited
- 支持获取自定义的 Agent 启动参数 获取自定义的 Agent 启动参数 #164
- Advice添加获取目标类加载器的快捷方法 Advice中获取ClassLoader很麻烦 #161
|
Codecov Report
@@ Coverage Diff @@
## develop-for-20190410 #163 +/- ##
=======================================================
- Coverage 43.03% 42.94% -0.1%
=======================================================
Files 98 98
Lines 4136 4147 +11
Branches 667 672 +5
=======================================================
+ Hits 1780 1781 +1
- Misses 2174 2185 +11
+ Partials 182 181 -1
Continue to review full report at Codecov.
|
String sandboxHome = featureMap == null || !featureMap.containsKey(KEY_SANDBOX_HOME) | ||
? DEFAULT_SANDBOX_HOME : featureMap.get(KEY_SANDBOX_HOME); | ||
// 保留 featureMap 中的所有配置项 | ||
Map<String, String> map = copyMap(featureMap); |
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.
通过一个 map 来存放,最后再统一序列化,这样代码更加清晰,更易于维护。
* @param key 键 | ||
* @return 值 | ||
*/ | ||
String getProperty(String key); |
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.
提供两个获取启动参数的方法,一个是获取单个的,一个是获取全部的。