Search code examples
javajava-money

what's the difference between jsr354-api and jsr354-ri


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.


Solution

  • 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.