Skip to main content
This revision made April 22, 2013 13:29, by Anatole


JSR 354 - Currency and Money


Introduction

This JSR focuses on defining interfaces and classes to be used for currencies and monetary amounts. Generally the following areas are defined:

  • Core This area defines the classes representing currencies and monetary amounts.
  • Conversion This area deals with exchange rates between currencies and provides an API/SPI to perform conversion of monetary amounts from one currency to another.
  • Format This area defines APIs/SPIs for formatting and parsing of currencies and monetary amounts, providing support for complex usage scenarios.
  • Extensions This area defines additional functions and utilities that are useful and feasible.

It is planned the the JSR will support both SE and ME environments. The reference implementation probably also will include further support for EE/CDI.

Scope and Use Cases

Generally the scope of the JSR is targeting all general application types, e.g.

  • eCommerce
  • Banking and finance
  • Investment
  • Insurance and Pension
  • Mobile and Embedded Payment
  • etc.

Summarizing the scope can be defined as follows:

  • Provide abstractions for currency and money suitable for all target applications
  • Enhance, renew Currency, add support for non-ISO currencies
  • Support complex calculation rules including calculation precision and display precision
  • Support for regional rounding rules
  • Basic support for foreign exchange, extendable for more complex usage scenarios
  • A plain text representation of Money
  • Printing/Parsing to String
  • Support for pluralization
  • Provide APIs for historic access of currencies and exchange rates.
  • Define a flexible query API tu support complex usage scenarios for exchange rates and currencies
  • Storing a value in multiple currencies (a single value type that is effectively a map of currency to amount, where the amounts are all notionally the same by some form of currency conversion)
  • Large exchange rate system (as in a system suitable for trading, such as bid/ask)

Nevertheless there are some restrictions (features that are not in scope):

Further Information and Source Code Access

Difference compared to previous revision
* '''Core''' This area defines the classes representing currencies and monetary amounts. * '''Conversion''' This area deals with exchange rates between currencies and provides an API/SPI to perform conversion of monetary amounts from one currency to another. * '''Format''' This area defines APIs/SPIs for formatting and parsing of currencies and monetary amounts, providing support for complex usage scenarios. * '''Extensions''' This area defines additional functionas and utilities that are regi=
JSR 354 - Currency and Money


== Introduction This JSR focuses on defining interfaces and classes to be used for currencies and monetary amounts. Generally the following areas are defined: * '''Core''' This area defines the classes representing currencies and monetary amounts. ... * '''Core''' This area defines the classes representing currencies and monetary amounts. * '''Conversion''' This area deals with exchange rates between currencies and provides an API/SPI to perform conversion of monetary amounts from one currency to another. * '''Format''' This area defines APIs/SPIs for formatting and parsing of currencies and monetary amounts, providing support for complex usage scenarios. * '''Extensions''' This area defines additional functions and utilities that are ustered/accessibsefule using the Java Moneyl and f exteneasions SPIble. It is planned the the JSR will support both SE and ME environments. The reference implementation probably also will include further support for EE/CDI. ... Nevertheless there are some '''restrictions''' (features that are not in scope): * It is not planned to target low latency such as Algorithmic Trading applications. Nevertheless we will try to keep performance in mind to accomodate such applications. * Non-decimal currencies [http://en.wikipedia.org/wiki/Non-decimal_currency#Contemporary_non-decimal_currencies]Additionally the following features have been considered as '''optional''': * Providing static calculation utilities to those developers not using the JSR Money class (eg. those using an unwrapped double/long direcly). The use cases targeted can be found in more detail [[usecases|here]]. Also refer to this draft document ="https://docs.google.com/document/d/1_-ODvtAGw0JYKlHEdEiayc7jysYHD8RtIO2xsXMbBkY/pub">here. =Further Information and Source Code Access * Current Build Status and Build Information * Overall [[DesignPrinciples|Design Principles]] * Discussions about [[Precision]] and other [[implementation|Implementation notes]] * [[Requirements|Requirements]] * Public Source Code Repository on GitHub: [https://github.com/JavaMoney/javamoney GitHub Repository] * [[AdditionalR. It is planned the the JSR will support both SE and ME environments. The reference implementation probably also will include further support for EE/CDI. ... * Current Build Status and Build Information * Discussions about [[Precision]] and other [[implementation|Implementation notes]] * Public Source Code Repository on GitHub: [https://github.com/JavaMoney/javamoney GitHub Repository] * Theso curcrent es|Addspecificaitionaltion document (EDR - link to b Rese dourcnes]])
 
 
Close
loading
Please Confirm
Close