initial joda time support courtesy of Oliver Gierke

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2122 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2009-10-15 00:20:14 +00:00
parent e323efaa50
commit 88956c4788
6 changed files with 107 additions and 1 deletions
@@ -962,6 +962,7 @@ public interface Formatter<T> {
Several Formatter implementations are provided in subpackages of <filename>ui.format</filename> as a convenience.
The <filename>date</filename> package provides a DateFormatter to format java.util.Date objects with a java.text.DateFormat.
The <filename>number</filename> package provides a DecimalFormatter, IntegerFormatter, CurrencyFormatter, and PercentFormatter to format java.lang.Number objects using a java.text.NumberFormat.
The <filename>jodatime</filename> package provides a DateTimeFormatter to format Joda DateTime objects, a popular alternative to java.util.Date/Calendar.
</para>
<para>
Consider <classname>DateFormatter</classname> as an example <interfacename>Formatter</interfacename> implementation:
@@ -1000,7 +1001,6 @@ public final class DateFormatter implements Formatter<Date> {
}]]></programlisting>
<para>
The Spring team welcomes community-driven Formatter contributions; see <ulink url="http://jira.springframework.org">http://jira.springframework.org</ulink> to contribute.
In particular, the team hopes to integrate support for Joda Time and Money Formatters in the future.
</para>
</section>
<section id="ui-format-Formatted-Annotation">