You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class="octicon octicon-link"></span></a>What is JSR 354?
100
+
</h3>
101
+
102
+
<p>JSR 354 provides a portable and extendible framework for handling of Money & Currency. The API
103
+
models monetary amounts and currencies in a platform independent and portable way, including well
104
+
defined extension points. It's API defines a simple yet flexible contract that enables users to choose
105
+
the implementation matching their target requirements best and having full control about the numeric state
106
+
at all stages during monetary processing. <br/>
107
+
The JSR is lead by Anatole Tresch (Credit Suisse) (<ahref="https://github.com/atsticks" class="user-mention">@atsticks</a>).
108
+
<br/>You can access the API by adding the following Maven
109
+
dependencies:</p>
110
+
111
+
<pre><code><dependency>
112
+
<groupId>javax.money</groupId>
113
+
<artifactId>money-api</artifactId>
114
+
<version>0.8-SNAPSHOT</version>
115
+
</dependency>
116
+
</code></pre>
117
+
118
+
<p>Though it is possible to compile your programs completely with the API, in most cases, you will also have to
119
+
add an implementation, e.g. the <ahref="ri.html">Moneta</a> reference implementation.</p>
120
+
121
+
<h3>
122
+
<aname="overview" class="anchor"
123
+
href="#overview"><span
124
+
class="octicon octicon-link"></span></a>Overview
125
+
</h3>
126
+
127
+
<p>
128
+
The API basically consists of three packages:
129
+
<ul>
130
+
<li><b>javax.money</b> contains the main artifacts of the API, e.g. the interfaces for <code>MonetaryAmount, CurrencyUnit, MonetaryOPerator, MonetaryQuery</code>, and the
131
+
accessor singletons for amounts, currencies and roundings.</li>
132
+
<li><b>javax.money.format</b> contains the formatting logic, which has some similarities with <code>java.text</code> but relies
133
+
more on immutable artifacts and builders.</li>
134
+
<li><b>javax.money.spi</b> contains the service provider interfaces and the bootstrap logic, which allows to configure the API
135
+
also within EE contexts (e.g. running it within a CDI container).</li>
0 commit comments