public class

JodaTimeFormatterRegistrar

extends Object
implements FormatterRegistrar
java.lang.Object
   ↳ org.springframework.format.datetime.joda.JodaTimeFormatterRegistrar

Class Overview

Configures Joda Time's Formatting system for use with Spring.

Summary

Public Constructors
JodaTimeFormatterRegistrar()
Public Methods
void registerFormatters(FormatterRegistry registry)
Register Formatters and Converters with a FormattingConversionService through a FormatterRegistry SPI.
void setDateStyle(String dateStyle)
Set the default format style of Joda LocalDate objects.
void setDateTimeStyle(String dateTimeStyle)
Set the default format style of Joda LocalDateTime and DateTime objects, as well as JDK Date and Calendar objects.
void setTimeStyle(String timeStyle)
Set the default format style of Joda LocalTime objects.
void setUseIsoFormat(boolean useIsoFormat)
Set whether standard ISO formatting should be applied to all Date/Time types.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.format.FormatterRegistrar

Public Constructors

public JodaTimeFormatterRegistrar ()

Public Methods

public void registerFormatters (FormatterRegistry registry)

Register Formatters and Converters with a FormattingConversionService through a FormatterRegistry SPI.

Parameters
registry the FormatterRegistry instance to use.

public void setDateStyle (String dateStyle)

Set the default format style of Joda LocalDate objects. Default is DateTimeFormat#shortDate().

public void setDateTimeStyle (String dateTimeStyle)

Set the default format style of Joda LocalDateTime and DateTime objects, as well as JDK Date and Calendar objects. Default is DateTimeFormat#shortDateTime().

public void setTimeStyle (String timeStyle)

Set the default format style of Joda LocalTime objects. Default is DateTimeFormat#shortTime().

public void setUseIsoFormat (boolean useIsoFormat)

Set whether standard ISO formatting should be applied to all Date/Time types. Default is false (no). If set to true, the dateStyle, timeStyle, and dateTimeStyle properties are ignored.