问题描述
我一直在研究JSF,遇到了RI(参考实现)一词.这是什么RI.另外,这是否仅限于JSF框架或所有框架都具有此功能?
I have been working on JSF, I came across the term RI (Reference Implementation). What is this RI. Also, is this restricted only to JSF framework or do all frameworks have this?
推荐答案
JSF是规范-软件系统的文本描述.从理论上讲,至少该规范可以有许多不同的实现;多个供应商都可以实现自己的规范版本,所有这些规范都遵循规范,但是其中一些更快,或更健壮,或者使用的内存更少,等等.引用实现仅是的实现.作为规范实现方式示例的规范.拥有RI使其他实施者更容易理解规范的意图.有时RI只是一个玩具,没有人使用它.其他时候,RI也是最好的实现.
JSF is a specification -- a textual description of a software system. In theory, at least, there could be many different implementations of that specification; multiple vendors could all implement their own versions of the spec, all of which followed the specification, but some were faster, or more robust, or used less memory, etc. The reference implementation is simply the implementation of a specification that is offered as an example of how the specification might be implemented. Having a RI makes it easier for other implementors to understand the intent of a specification. Sometimes the RI is just a toy, and no one uses it; other times, the RI is also the best implementation.
这不是JSF独有的-几乎所有Java规范都具有RI,并且RI通常是大多数开发人员使用的实现.
This is not unique to JSF -- virtually all Java specs have an RI, and very often the RI is the implementation most developers use.
这篇关于参考实施一词是什么意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!