Gephi开源学习-API与SPI之困惑
来源:互联网 发布:无名智者软件 编辑:程序博客网 时间:2024/05/16 07:06
今天再次开始学习Gephi,导到netbeans中看到API和SPI两个包,google如下:
What is the difference between Service Provider Interface (SPI) and Application Programming Interface (API)?
More specifically, for Java libraries, what makes them an API and/or SPI?
the API is the description of classes/interfaces/methods/... that you call and use to achieve a goal
the SPI is the description of classes/interfaces/methods/... that you extend and implement to achieve a goal
Put differently, the API tells you what a specific class/method does for you and the SPI tells you what you must do to conform.
Sometimes SPI and API overlap. For example in JDBC the Driver class is part of the SPI: If you simply want to use JDBC, you don't need to use it directly, but everyone who implements a JDBC driver must implement that class.
The Connection interface on the other hand is both SPI and API: You use it routinely when you use a JDBC driver and it needs to be implemented by the developer of the JDBC driver。
理解为:
1.API是为实现某一目标,供程序员调用或使用的一种接口/类/方法......
2.SPI是为实现某一目标,程序员必须继承或者是实现的接口/类/方法......
附详细解析:http://www.cnblogs.com/happyframework/p/3325560.html
- Gephi开源学习-API与SPI之困惑
- Gephi初识之简单绘图学习
- osworkflow api 之 spi
- SPI学习之:SPI编程
- tp学习之“困惑”
- FPGA学习之SPI
- 学习中的思考与困惑
- gephi
- STM32学习笔记之硬件SPI读写与极性设置
- Gephi中的统计算法学习
- API & SPI
- API & SPI
- SPI API
- 新手学习php的困惑与探索
- 学习困惑
- Gephi学习笔记-画出图形基本流程
- STM32学习之路之SPI通信
- 学习SPI与SD卡必读
- python pickle模块学习
- 【2680】6-2 多态性与虚函数
- java常用对象序列化对象性能简单比较
- iOS中tableview中headerview总保持在屏幕上方和随着屏幕滑动一起移动至消失
- VS2012遇到"the project requires user input"问题
- Gephi开源学习-API与SPI之困惑
- 【Swift】学习笔记(四)——集合(Collection)
- 局域网音频对讲
- git使用介绍
- Mysql定时执行任务,执行批量的sql语句 并且查看已经生成的定时事件
- linux sudoers修改导致不能在终端使用sudo 和su的解决方法
- Hack 5 用TextSwitcher实现文字切换动画
- 一直想......
- Java 多线程 BlockingQueue 实现 高并发邮件 代码 MailBean