java - “Reference implementation” 是什么意思?

标签 java

我正在尝试学习 Java 中的 CachedRowSet,并且正在阅读一些有关它的教程。 我经常遇到引用实现术语。

例如

Alternatively, you can use the constructor from the CachedRowSet implementation of your JDBC driver. However, implementations of the RowSet interface will differ from the reference implementation. These implementations will have different names and constructors. For example, the Oracle JDBC driver's implementation of the CachedRowSet interface is named oracle.jdbc.rowset.OracleCachedRowSet.

谁能解释一下?

请注意,我在网上发现了一些定义太模糊以至于我无法理解。

最佳答案

这意味着应该演示概念的规范的实现。大多数情况下,它是由设计规范的同一个人/公司实现的。

您可能会将规范视为允许其他可能的实现与世界其他地方兼容所需的标准。以及概念验证类软件的引用实现,应该展示如何做到这一点并鼓励其他人创建自己的实现。

在 JDBC 上下文中,这意味着有一些接口(interface) (CachedRowSet) 规定了一些方法,并且在 Sun/Oracle 中有对这些接口(interface)的引用实现。

关于java - “Reference implementation” 是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22824843/

相关文章:

java - subList() 与其他类似的 Collections 方法有不同的行为,一旦 subList 被改变

java - 将正则表达式应用于 Java I/O 流

java - Arduino 与 Java 接口(interface)问题

java - 为什么在迁移到 Hibernate 5.4.x 时 MappedSuperClass 注释与@Inheritance 结合不再有效?

java - 用多态类替换 switch

java - Java 中增量运算符的奇怪行为?

java - 项目构建错误: Non-resolvable parent POM cannot find repository

java - Jackson 解析异常-(虽然至少有一个 Creator 存在): no String-argument constructor/factory method to deserialize from String value

java - 模拟类的内部方法

java - GUID可以包含反斜杠(\)吗?