-
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
2.6.x Spring Event & Bugfix #2256
Conversation
…v work after apache incubator transition.
2.5.x merge to master
Remove invalid JavaDoc
Please focus on code review since those commits have some break update. |
Codecov Report
@@ Coverage Diff @@
## 2.6.x #2256 +/- ##
============================================
- Coverage 47.32% 47.21% -0.11%
+ Complexity 4264 4263 -1
============================================
Files 557 558 +1
Lines 24397 24352 -45
Branches 4342 4324 -18
============================================
- Hits 11546 11499 -47
- Misses 11048 11071 +23
+ Partials 1803 1782 -21
Continue to review full report at Codecov.
|
import com.alibaba.dubbo.config.ProviderConfig; | ||
import com.alibaba.dubbo.config.RegistryConfig; | ||
import com.alibaba.dubbo.config.ServiceConfig; | ||
import com.alibaba.dubbo.config.*; |
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.
make sure not add import *
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.
Ok, it requires change IDEA Template
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.
import org.springframework.context.ApplicationContext; | ||
import org.springframework.context.ApplicationContextAware; | ||
import org.springframework.context.ApplicationListener; | ||
import org.springframework.context.*; |
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.
make sure not add import * , same as @diecui1202 said.
/** | ||
* Dubbo {@link Service @Service} Bean Builder | ||
* | ||
* @author <a href="mailto:[email protected]">Mercy</a> |
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.
@author should be removed ?
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.
Ok
throws IllegalStateException { | ||
|
||
String interfaceName; | ||
if (!"".equals(service.interfaceName())) { |
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.
use com.alibaba.dubbo.common.utils.StringUtils#isNotEmpty more better ?
throws IllegalStateException { | ||
|
||
String interfaceName; | ||
if (!"".equals(reference.interfaceName())) { |
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.
use com.alibaba.dubbo.common.utils.StringUtils#isNotEmpty more better ?
Assert.assertEquals(true, referenceBean.isGeneric()); | ||
Assert.assertEquals(true, referenceBean.isInjvm()); | ||
Assert.assertEquals(false, referenceBean.isCheck()); | ||
Assert.assertEquals(null, referenceBean.isInit()); |
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.
#line 53 init = false
, Assert.assertEquals(null, referenceBean.isInit())
should be Assert.assertEquals(false, referenceBean.isInit())
?
/** | ||
* {@link Service} Bean | ||
* | ||
* @author <a href="mailto:[email protected]">Mercy</a> |
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.
@author should be removed ?
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.
More confused, too many commits are difficult to find bug fix code for both service and reference in the same project
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.
1.com.alibaba.spring.beans.factory.annotation.AnnotationInjectedBeanPostProcessor#findFieldAnnotationMetadata
and findMethodAnnotationMetadata
will cache all the fields or methods that have been annotated with dubbo. The application startup will not be used again.
- Dubbo's referenceConfig has been added proxy (spi), you add a another layer of proxy (jdk) here, just solve the same jvm refer to consume the service in advance, this is no problem, after the success of the references should be removing proxy
@mercyblitz Pls. check the ci failure. |
What is the purpose of the change
New Features
com.alibaba.dubbo.config.spring.context.event.ServiceBeanExportedEvent
Enhancement
com.alibaba.dubbo.config.spring.beans.factory.annotation.ServiceBeanNameBuilder
Fixed Bugs
ReferenceAnnotationBeanPostProcessorTest