-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use spring.factories instead of jdk spi (#1175)
Co-authored-by: 致节 <hzj266771@antgroup.com>
- Loading branch information
1 parent
a2c6b10
commit 50ee113
Showing
21 changed files
with
89 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...ources/META-INF/services/com.alipay.sofa.boot.spring.namespace.spi.SofaBootTagNameSupport
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...t/src/main/resources/META-INF/services/com.alipay.sofa.runtime.spi.binding.BindingAdapter
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...src/main/resources/META-INF/services/com.alipay.sofa.runtime.spi.service.BindingConverter
This file was deleted.
Oops, something went wrong.
22 changes: 21 additions & 1 deletion
22
sofa-boot-project/sofa-boot-core/rpc-sofa-boot/src/main/resources/META-INF/spring.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
org.springframework.context.ApplicationListener=\ | ||
com.alipay.sofa.rpc.boot.context.RpcEnvironmentApplicationListener | ||
com.alipay.sofa.rpc.boot.context.RpcEnvironmentApplicationListener | ||
|
||
com.alipay.sofa.boot.spring.namespace.spi.SofaBootTagNameSupport=\ | ||
com.alipay.sofa.rpc.boot.runtime.parser.GlobalFilterParser | ||
|
||
com.alipay.sofa.runtime.spi.binding.BindingAdapter=\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.BoltBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.RestBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.DubboBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.H2cBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.HttpBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.TripleBindingAdapter | ||
|
||
com.alipay.sofa.runtime.spi.service.BindingConverter=\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.BoltBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.RestBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.DubboBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.H2cBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.HttpBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.TripleBindingConverter | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...ources/META-INF/services/com.alipay.sofa.boot.spring.namespace.spi.SofaBootTagNameSupport
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...t/src/test/resources/META-INF/services/com.alipay.sofa.runtime.spi.binding.BindingAdapter
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...src/test/resources/META-INF/services/com.alipay.sofa.runtime.spi.service.BindingConverter
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
sofa-boot-project/sofa-boot-core/rpc-sofa-boot/src/test/resources/META-INF/spring.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
com.alipay.sofa.boot.spring.namespace.spi.SofaBootTagNameSupport=\ | ||
com.alipay.sofa.rpc.boot.runtime.parser.GlobalFilterParser | ||
|
||
com.alipay.sofa.runtime.spi.binding.BindingAdapter=\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.BoltBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.RestBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.DubboBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.H2cBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.HttpBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.runtime.adapter.TripleBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.test.adapter.XBindingAdapter,\ | ||
com.alipay.sofa.rpc.boot.test.adapter.XBindingAdapter2,\ | ||
com.alipay.sofa.rpc.boot.test.adapter.XBindingAdapter3 | ||
|
||
com.alipay.sofa.runtime.spi.service.BindingConverter=\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.BoltBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.RestBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.DubboBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.H2cBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.HttpBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.runtime.converter.TripleBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.test.converter.TestBindingConverter,\ | ||
com.alipay.sofa.rpc.boot.test.converter.TestBindingConverter2,\ | ||
com.alipay.sofa.rpc.boot.test.converter.TestBindingConverter3 |
41 changes: 0 additions & 41 deletions
41
...ources/META-INF/services/com.alipay.sofa.boot.spring.namespace.spi.SofaBootTagNameSupport
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...t/src/main/resources/META-INF/services/com.alipay.sofa.runtime.spi.binding.BindingAdapter
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...src/main/resources/META-INF/services/com.alipay.sofa.runtime.spi.service.BindingConverter
This file was deleted.
Oops, something went wrong.
15 changes: 14 additions & 1 deletion
15
...oot-project/sofa-boot-core/runtime-sofa-boot/src/main/resources/META-INF/spring.factories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
# Initializers | ||
com.alipay.sofa.boot.startup.BeanStatCustomizer=\ | ||
com.alipay.sofa.runtime.startup.ComponentBeanStatCustomizer | ||
com.alipay.sofa.runtime.startup.ComponentBeanStatCustomizer | ||
|
||
com.alipay.sofa.boot.spring.namespace.spi.SofaBootTagNameSupport=\ | ||
com.alipay.sofa.runtime.spring.parser.ReferenceDefinitionParser,\ | ||
com.alipay.sofa.runtime.spring.parser.ServiceDefinitionParser,\ | ||
com.alipay.sofa.runtime.spring.parser.AsyncInitBeanDefinitionDecorator,\ | ||
com.alipay.sofa.runtime.ext.spring.parser.ExtensionPointBeanDefinitionParser,\ | ||
com.alipay.sofa.runtime.ext.spring.parser.ExtensionBeanDefinitionParser | ||
|
||
com.alipay.sofa.runtime.spi.binding.BindingAdapter=\ | ||
com.alipay.sofa.runtime.service.binding.JvmBindingAdapter | ||
|
||
com.alipay.sofa.runtime.spi.service.BindingConverter=\ | ||
com.alipay.sofa.runtime.service.binding.JvmBindingConverter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 0 additions & 45 deletions
45
sofa-boot-project/sofa-boot/src/main/java/com/alipay/sofa/boot/util/ServiceLoaderUtils.java
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
...ot-project/sofa-boot/src/test/java/com/alipay/sofa/boot/util/ServiceLoaderUtilsTests.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.