I want to use a javamoney lib, I found two lib the below: javamoney/jsr354-api and javamoney/jsr354-ri in the github. What's the diffirence, thank you.
Asked
Active
Viewed 107 times
1 Answers
2
ri in jsr354-ri stands for reference implementation, and api in jsr354-api stands for the programming interface without the implementation.
You'd use api to program against and implementation is needed runtime to actually execute your code. Reference implementation means it's the "official" implementation version.

eis
- 51,991
- 13
- 150
- 199
-
Thanks. You mean the api just interface and ri stands for implementation. So if I just used ri, Maybe the ri dependency the api. – user3172755 Mar 27 '17 at 15:51
-
@user3172755 yes. though recommended way would be to depend on api only, and then depend on the implementation only at runtime – eis Mar 28 '17 at 07:52