-
Notifications
You must be signed in to change notification settings - Fork 926
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
Support @LocalArmeriaPort
, @LocalArmeriaPorts
#2649
Conversation
I found that the test failed 176e8a1. However, it does not seem to be related to the PR. java 8
java 11 (run task locally)
|
Codecov Report
@@ Coverage Diff @@
## master #2649 +/- ##
============================================
+ Coverage 73.25% 73.31% +0.05%
- Complexity 11193 11206 +13
============================================
Files 991 993 +2
Lines 43132 43181 +49
Branches 5361 5367 +6
============================================
+ Hits 31597 31656 +59
+ Misses 8777 8774 -3
+ Partials 2758 2751 -7 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.
Nice work, @heowc! 👍
...com/linecorp/armeria/internal/spring/ArmeriaServerPortInfoApplicationContextInitializer.java
Outdated
Show resolved
Hide resolved
...com/linecorp/armeria/internal/spring/ArmeriaServerPortInfoApplicationContextInitializer.java
Outdated
Show resolved
Hide resolved
...com/linecorp/armeria/internal/spring/ArmeriaServerPortInfoApplicationContextInitializer.java
Show resolved
Hide resolved
...g/boot-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaAutoConfiguration.java
Outdated
Show resolved
Hide resolved
...t-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaServerInitializedEvent.java
Outdated
Show resolved
Hide resolved
...t-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaServerInitializedEvent.java
Outdated
Show resolved
Hide resolved
...t-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaServerInitializedEvent.java
Outdated
Show resolved
Hide resolved
spring/boot-autoconfigure/src/main/resources/META-INF/spring.factories
Outdated
Show resolved
Hide resolved
Thanks for review ~ :-) |
...com/linecorp/armeria/internal/spring/ArmeriaServerPortInfoApplicationContextInitializer.java
Outdated
Show resolved
Hide resolved
...com/linecorp/armeria/internal/spring/ArmeriaServerPortInfoApplicationContextInitializer.java
Outdated
Show resolved
Hide resolved
.../boot-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaServerStartedEvent.java
Outdated
Show resolved
Hide resolved
...com/linecorp/armeria/internal/spring/ArmeriaServerPortInfoApplicationContextInitializer.java
Outdated
Show resolved
Hide resolved
...com/linecorp/armeria/internal/spring/ArmeriaServerPortInfoApplicationContextInitializer.java
Outdated
Show resolved
Hide resolved
...ot-webflux-autoconfigure/src/main/java/com/linecorp/armeria/spring/web/ArmeriaWebServer.java
Outdated
Show resolved
Hide resolved
...g/boot-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaAutoConfiguration.java
Show resolved
Hide resolved
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.
Just some nits. Nice!
.../boot-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaServerStartedEvent.java
Outdated
Show resolved
Hide resolved
spring/boot-autoconfigure/src/main/resources/META-INF/spring.factories
Outdated
Show resolved
Hide resolved
spring/boot-autoconfigure/src/test/java/com/linecorp/armeria/spring/LocalArmeriaPortTest.java
Outdated
Show resolved
Hide resolved
spring/boot-autoconfigure/src/test/java/com/linecorp/armeria/spring/LocalArmeriaPortsTest.java
Outdated
Show resolved
Hide resolved
spring/boot-webflux-autoconfigure/src/main/resources/META-INF/spring.factories
Outdated
Show resolved
Hide resolved
...toconfigure/src/test/java/com/linecorp/armeria/spring/web/reactive/LocalArmeriaPortTest.java
Outdated
Show resolved
Hide resolved
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.
Just some nits
spring/boot-autoconfigure/src/main/resources/META-INF/spring.factories
Outdated
Show resolved
Hide resolved
spring/boot-webflux-autoconfigure/src/main/resources/META-INF/spring.factories
Outdated
Show resolved
Hide resolved
After playing a little bit with this pull request by myself, I realized it will be very useful if a user can specify a list of |
Oh! good idea. However, this seems to require some changes. I'll check it. 🤔 |
@trustin , I used I think the core classes inside Spring to operate I am not sure if I should do this. what do you think? 🤔 |
It'd be awesome if you could write a |
Thanks for your patience, @heowc 🙇♂️ |
This seems to change a lot differently from the first thought. Therefore, I will close this PR and create a new one. |
Motivation:
Modifications:
@LocalArmeriaPort
,@LocalArmeriaPorts
ArmeriaServerPortInfoApplicationContextInitializer
to spring.factoriesResult:
@LocalArmeriaPort
,@LocalArmeriaPorts
#2561