Java中的SPI机制

在Dubbo, MySQL JDBC,SpringBoot中见过SPI,各自有各自实现.

先记一笔SPI, ServiceProviderInterface

 

SpringBoot的Loader

https://blog.csdn.net/qq_27529917/article/details/80861178

https://blog.csdn.net/qq_28802119/article/details/83536305

 

使用JDK的ServiceLoader

https://blog.csdn.net/ccsama17920/article/details/80021340

https://www.cnblogs.com/googlemeoften/p/5715262.html

 

使用Dubbo的ExtensionLoader

https://www.jianshu.com/p/a72856c77b6a

http://dubbo.apache.org/en-us/docs/dev/SPI.html

 

posted @ 2018-12-27 14:04  multitude  阅读(284)  评论(0)    收藏  举报