What does “Reference implementation” mean?

前端 未结 2 1415
灰色年华
灰色年华 2020-12-14 18:40

I am trying to learn about CachedRowSet in Java, and I am reading some tutorials about it. I have come across reference implementation terminology very often.

For ex

相关标签:
2条回答
  • 2020-12-14 19:17

    It means the implementation of the specification that should demonstrate the concepts. Mostly it is implemented by the same guys/company that designed the specification.

    You may think of specification as a standard that is needed to allow other possible implementation to be compatible with the rest of the world. And the reference implementation of a proof-of-concept kind piece of software that should show how to do that and encourage others to create their own implementations.

    In the JDBC context it means, that there are some interfaces (CachedRowSet) prescribing some methods and there is a reference implementation to these interfaces done in Sun/Oracle.

    0 讨论(0)
  • 2020-12-14 19:24

    JSR (Java Specification Request) - theory

    RI (Reference Implementation) - concrete, working code proving that JSR can work. Basically, a sample implementation.

    You can create your own implementation of any JSR and use RI as an example if you're not sure about something.

    0 讨论(0)
提交回复
热议问题