Skip to content
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

optimize: adjust the order of springApplicationContextProvider #3439

Merged
merged 4 commits into from
Jan 8, 2021

Conversation

caohdgege
Copy link
Contributor

…cate code

Ⅰ. Describe what this PR did

adjust the order of springApplicationContextProvider so that it can init before the bean of xml.

调整springApplicationContextProvider的顺序以使得他可以在xml的bean之前被调用。同时删除了一些无用的代码

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Jan 5, 2021

Codecov Report

Merging #3439 (8428481) into develop (c65aec5) will decrease coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #3439      +/-   ##
=============================================
- Coverage      51.57%   51.54%   -0.04%     
+ Complexity      3379     3374       -5     
=============================================
  Files            618      617       -1     
  Lines          20441    20438       -3     
  Branches        2564     2564              
=============================================
- Hits           10543    10535       -8     
- Misses          8839     8841       +2     
- Partials        1059     1062       +3     
Impacted Files Coverage Δ Complexity Δ
...ing/boot/autoconfigure/SeataAutoConfiguration.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...n/src/main/java/io/seata/common/util/IdWorker.java 77.08% <0.00%> (-6.25%) 11.00% <0.00%> (-1.00%)
...o/seata/server/coordinator/DefaultCoordinator.java 53.92% <0.00%> (-0.50%) 28.00% <0.00%> (-1.00%)
...in/java/io/seata/server/session/GlobalSession.java 83.63% <0.00%> (-0.46%) 71.00% <0.00%> (-1.00%)

@@ -26,9 +28,12 @@
* @author xingfudeshi@gmail.com
* The type spring application context provider
*/
public class SpringApplicationContextProvider implements ApplicationContextAware {
public class SpringApplicationContextProvider implements ApplicationContextAware, BeanFactoryPostProcessor {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add @author.

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@funky-eyes funky-eyes added this to the 1.5.0 milestone Jan 6, 2021
Copy link
Member

@xingfudeshi xingfudeshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants