Re: Is Spring Optional?

2018-04-09 Thread Ian Luo
John, If you want to adapt dubbo into other DI framework, then you need to wire dubbo config API into this DI framework. I suggest you look into dubbo-config-api and dubbo-config-spring under https://github.com/apache/incubator-dubbo/tree/master/dubbo-config to understand how we integrate spring f

Re: Is Spring Optional?

2018-04-08 Thread shang zonghai
Great , you are right ! Dubbo follows a similar ServiceLoader mechanism, By default, the SPI implementation is looked up in the following order: META-INF/dubbo/internal/ META-INF/dubbo/ META-INF/services/ Here is SPI com.alibaba.dubbo.container.Container file content: spring=com.alibaba.dubbo.

Re: Is Spring Optional?

2018-04-08 Thread John D. Ament
Oh ok, so if I wanted a different one, do I just implement the interface, or are there other requirements? Many other frameworks leverage a META-INF/services ServiceLoader pattern. John On Sun, Apr 8, 2018 at 11:22 AM shang zonghai wrote: > The meaning of the SPI default use springContainer, a

Re: Is Spring Optional?

2018-04-08 Thread shang zonghai
The meaning of the SPI default use springContainer, allow custom extensions. yiji > 在 2018年4月8日,23:18,John D. Ament 写道: > > Weird, because even that says spring > https://github.com/apache/incubator-dubbo/blob/master/dubbo-container/dubbo-container-api/src/main/java/com/alibaba/dubbo/container/

Re: Is Spring Optional?

2018-04-08 Thread John D. Ament
Weird, because even that says spring https://github.com/apache/incubator-dubbo/blob/master/dubbo-container/dubbo-container-api/src/main/java/com/alibaba/dubbo/container/Container.java#L24 But it's a step, let me play around with it a bit. John On Sun, Apr 8, 2018 at 10:36 AM shang zonghai wrote

Re: Is Spring Optional?

2018-04-08 Thread shang zonghai
SPI: com.alibaba.dubbo.container.Container Default SpringContainer extends this API,The dubbo-config-spring module supports spring-related functions. Dubbo design goals are highly scalable, allowing custom extensions to support more DI containers. Kind regards, yiji > 在 2018年4月8日,22:27,John