-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
增加DubboBootstrap启动停止事件扩展 #7159
增加DubboBootstrap启动停止事件扩展 #7159
Conversation
...fig-api/src/main/java/org/apache/dubbo/config/bootstrap/DubboBootstrapStartStopListener.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## master #7159 +/- ##
=========================================
Coverage 59.98% 59.99%
+ Complexity 291 289 -2
=========================================
Files 1001 1004 +3
Lines 39957 39977 +20
Branches 5935 5935
=========================================
+ Hits 23970 23984 +14
- Misses 13288 13291 +3
- Partials 2699 2702 +3 Continue to review full report at Codecov.
|
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.
...ava/org/apache/dubbo/config/spring/context/DubboBootstrapStartStopListenerSpringAdapter.java
Show resolved
Hide resolved
@@ -46,6 +46,7 @@ | |||
public DubboBootstrapApplicationListener(ApplicationContext applicationContext) { | |||
super(applicationContext); | |||
this.dubboBootstrap = DubboBootstrap.getInstance(); | |||
DubboBootstrapStartStopListenerSpringAdapter.applicationContext = applicationContext; |
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.
Is there a better way to initialize DubboBootstrapStartStopListenerSpringAdapter
?
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7159 +/- ##
============================================
- Coverage 59.99% 59.99% -0.01%
+ Complexity 292 289 -3
============================================
Files 1001 1004 +3
Lines 39957 39977 +20
Branches 5935 5935
============================================
+ Hits 23973 23984 +11
- Misses 13287 13291 +4
- Partials 2697 2702 +5 ☔ View full report in Codecov by Sentry. |
增加 DubboBootstrapStartStopListener 来对外通知 DubboBootstarp 的启动停止回调扩展;
向Spring环境抛出DubboBootstarp 的启动停止事件。
#7150