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
<ahref="https://github.com/JavaMoney/jsr354-api" id="view-on-github" class="button"><span>View on GitHub</span></a>
88
+
</section>
89
+
<hr>
90
+
<sectionid="main_content">
91
+
<h3><aname="what-is-jsr-354" class="anchor" href="#what-is-jsr-354"><spanclass="octicon octicon-link"></span></a>What is JSR 354? </h3>
92
+
<p>JSR 354 provides a portable and extendible framework for handling of Money & Currency. The API models monetary amounts and currencies in a platform independent and portable way, including well defined extension points. It's API defines a simple yet flexible contract that enables users to choose the implementation matching their target requirements best and having full control about the numeric state at all stages during monetary processing. <br> The JSR is lead by Anatole Tresch (Credit Suisse) (<ahref="https://github.com/atsticks" class="user-mention">@atsticks</a>). <br>You can access the API by adding the following Maven dependencies:</p>
93
+
<pre><code><dependency>
118
94
<groupId>javax.money</groupId>
119
95
<artifactId>money-api</artifactId>
120
96
<version>1.0.2</version>
121
97
</dependency>
122
-
</code></pre>
123
-
124
-
<p>Further versions can be found <ahref="http://mvnrepository.com/artifact/javax.money/money-api/" target="_blank">here</a>.</p>
125
-
<p>
126
-
The release artifacts should be accessible from the following repositories:
127
-
<ul>
128
-
<li>Maven Central</li>
129
-
<li>JCenter by Bintray</li>
130
-
</ul>
131
-
</p>
132
-
133
-
<p>Though it is possible to compile your programs completely with the API, in most cases, you will also have to
134
-
add an implementation, e.g. the <ahref="ri.html">Moneta</a> reference implementation.</p>
135
-
136
-
<h3>
137
-
<aname="overview" class="anchor"
138
-
href="#overview"><span
139
-
class="octicon octicon-link"></span></a>Overview
140
-
</h3>
141
-
142
-
<p>
143
-
The API basically consists of four packages:
144
-
<ul>
145
-
<li><code>javax.money</code> contains the main artifacts of the API, e.g. the interfaces for <code>MonetaryAmount</code>, <code>CurrencyUnit</code>, <code>MonetaryOperator</code>, <code>MonetaryQuery</code>, and the
146
-
accessor singletons for amounts, currencies and roundings.</li>
Since it a Java Specification Request check out out JSR's specification from the <ahref="https://jcp.org/en/jsr/detail?id=354">JSR 354 Detail Page</a>.
164
-
</p>
165
-
</section>
166
-
</p>
98
+
</code></pre>
99
+
<p>Further versions can be found <ahref="http://mvnrepository.com/artifact/javax.money/money-api/" target="_blank">here</a>.</p>
100
+
<p> The release artifacts should be accessible from the following repositories: </p>
101
+
<ul>
102
+
<li>Maven Central</li>
103
+
<li>JCenter by Bintray</li>
104
+
</ul>
105
+
<p></p>
106
+
<p>Though it is possible to compile your programs completely with the API, in most cases, you will also have to add an implementation, e.g. the <ahref="ri.html">Moneta</a> reference implementation.</p>
<p> The API basically consists of four packages: </p>
109
+
<ul>
110
+
<li><code>javax.money</code> contains the main artifacts of the API, e.g. the interfaces for <code>MonetaryAmount</code>, <code>CurrencyUnit</code>, <code>MonetaryOperator</code>, <code>MonetaryQuery</code>, and the accessor singletons for amounts, currencies and roundings.</li>
<li><code>javax.money.format</code> contains the formatting logic, which has some similarities with <code>java.text</code> but relies more on immutable artifacts and builders.</li>
113
+
<li><code>javax.money.spi</code> contains the service provider interfaces and the bootstrap logic, which allows to configure the API also within EE contexts (e.g. running it within a CDI container).</li>
<p> Since it a Java Specification Request check out out JSR's specification from the <ahref="https://jcp.org/en/jsr/detail?id=354">JSR 354 Detail Page</a>. </p>
119
+
</section></p>
167
120
168
121
<hr>
169
122
@@ -178,7 +131,7 @@ <h3>
178
131
Join the Gitter chat <ahref="https://gitter.im/orgs/JavaMoney/rooms" target="_blank"><imgsrc="https://badges.gitter.im/Join%20Chat.svg"/></a>.
179
132
Or contact <ahref="mailto:support@javamoney.org">support@javamoney.org</a>
<p> The JSR 354 <b>Early Draft</b> started on JCP.org. Check out the <ahref="http://jcp.org/aboutJava/communityprocess/edr/jsr354/index.html">EDR Download Page</a></p>
90
+
</section></p>
107
91
108
92
<hr>
109
93
@@ -118,7 +102,7 @@ <h3>Early Draft</h3>
118
102
Join the Gitter chat <ahref="https://gitter.im/orgs/JavaMoney/rooms" target="_blank"><imgsrc="https://badges.gitter.im/Join%20Chat.svg"/></a>.
119
103
Or contact <ahref="mailto:support@javamoney.org">support@javamoney.org</a>
<p>Nam id nisl quam. Donec a lorem sit amet libero pretium vulputate vel ut purus. Suspendisse leo arcu, mattis et imperdiet luctus, pulvinar vitae mi. Quisque fermentum sollicitudin feugiat. Mauris nec leo ligula. Vestibulum tristique odio ut risus ultricies a hendrerit quam iaculis. Duis tempor elit sit amet ligula vehicula et iaculis sem placerat. Fusce dictum, metus at volutpat lacinia, elit massa auctor risus, id auctor arcu enim eu augue. Donec ultrices turpis in mi imperdiet ac venenatis sapien sodales.</p>
100
89
<preclass="prettyprint">
101
90
<code>
102
91
package org.jbake;
@@ -107,11 +96,8 @@ <h1>First Post</h1>
107
96
}
108
97
}
109
98
</code>
110
-
</pre>
111
-
112
-
<p>In consequat imperdiet nunc quis bibendum. Nulla semper, erat quis ornare tristique, lectus massa posuere
113
-
libero, ut vehicula lectus nunc ut lorem. Aliquam erat volutpat.</p>
114
-
</p>
99
+
</pre>
100
+
<p>In consequat imperdiet nunc quis bibendum. Nulla semper, erat quis ornare tristique, lectus massa posuere libero, ut vehicula lectus nunc ut lorem. Aliquam erat volutpat.</p></p>
115
101
116
102
<hr>
117
103
@@ -126,7 +112,7 @@ <h1>First Post</h1>
126
112
Join the Gitter chat <ahref="https://gitter.im/orgs/JavaMoney/rooms" target="_blank"><imgsrc="https://badges.gitter.im/Join%20Chat.svg"/></a>.
127
113
Or contact <ahref="mailto:support@javamoney.org">support@javamoney.org</a>
0 commit comments