API就是Application Programming Interface应用程序接口,而SPI是Service Provider Interface服务商提供接口。
在JDK是有如下描述:
· the API is the description of classes/interfaces/methods/... that you call and use to achieve a goal and
· the SPI is the description of classes/interfaces/methods/... that you extend and implement to achieve a goal
API与SPI关系
因此,可清楚知道,API是你可以引用来达成某...
API与SPI关系, API是什么阅读全文