|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.format.datetime.joda.JodaTimeFormatterRegistrar
public class JodaTimeFormatterRegistrar
Configures Joda Time's Formatting system for use with Spring.
setDateStyle(java.lang.String)
,
setTimeStyle(java.lang.String)
,
setDateTimeStyle(java.lang.String)
,
setUseIsoFormat(boolean)
,
#installJodaTimeFormatting
Constructor Summary | |
---|---|
JodaTimeFormatterRegistrar()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JodaTimeFormatterRegistrar()
Method Detail |
---|
public void setDateStyle(String dateStyle)
LocalDate
objects.
Default is DateTimeFormat.shortDate()
.
public void setTimeStyle(String timeStyle)
LocalTime
objects.
Default is DateTimeFormat.shortTime()
.
public void setDateTimeStyle(String dateTimeStyle)
LocalDateTime
and DateTime
objects,
as well as JDK Date
and Calendar
objects.
Default is DateTimeFormat.shortDateTime()
.
public void setUseIsoFormat(boolean useIsoFormat)
public void registerFormatters(FormatterRegistry registry)
FormatterRegistrar
registerFormatters
in interface FormatterRegistrar
registry
- the FormatterRegistry instance to use.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |