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
Copy file name to clipboardExpand all lines: src/main/asciidoc/JavaMoneySpecification.adoc
+16-3
Original file line number
Diff line number
Diff line change
@@ -301,7 +301,8 @@ It must be possible to format and parse monetary amounts. Therefore the JSR defi
301
301
[[RequirementsFormattingEE]]
302
302
=== Java EE / Jakarta EE Support
303
303
. This JSR must avoid restrictions that prevents its use in different runtime environments, such as Java EE or Jakarta EE. Refer
304
-
also to the section <<Boostrap>> for more details on possible EE/CDI integration.
304
+
also to the section <<Bootstrap>> for more details on possible EE/CDI integration.
305
+
Examples like <<JadiraFramework>>, <<JakartaBeanValidation>>, <<SpringSupport>> or <<ZalandoJacksonBinding>> show a broad support for JSR 354 in the Java EE, Jakarta EE or Spring ecosystem.
305
306
306
307
[[RequirementsNonFunctional]]
307
308
=== Non Functional Requirements
@@ -316,7 +317,7 @@ also to the section <<Boostrap>> for more details on possible EE/CDI integration
316
317
be necessary normally.
317
318
. The API for monetary amounts must not expose its concrete numeric internal representation during compile time.
318
319
. Where feasible method naming and style for currency modeling should be in alignment with parts of the Java
319
-
Collection API or +java.time+ / [<<JodaMoney>>]:
320
+
Collection API or +java.time+ / <<JodaMoney>>:
320
321
.. same method name prefixes - +of()+ for all factories, unless their inheritance e.g. from +java.lang.Enum+ -
321
322
mandates otherwise, such as +valueOf()+.
322
323
.. basic creational factory methods with little/no conversion are named +of(...)+
The Jadira Framework adds Hibernate support for +MonetaryAmount+ if the JSR 354 API and an implementation are on the class path: http://jadira.sourceforge.net/project-info.html
3207
+
3208
+
[[[JakartaBeanValidation]]]
3209
+
Hibernate Validator supports any sub-type of +MonetaryAmount+ if the JSR 354 API and an implementation are on the class path:
Since release 4.2 the https://spring.io/projects/spring-framework[Spring Framework] supports JSR 354: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/format/number/money/package-summary.html
3214
+
3215
+
[[[ZalandoJacksonBinding]]]
3216
+
Zalando created Jackson Binding for JSR 354: https://github.com/zalando/jackson-datatype-money
0 commit comments