org.springframework.format.datetime.joda
Class JodaTimeConverters

java.lang.Object
  extended by org.springframework.format.datetime.joda.JodaTimeConverters

final class JodaTimeConverters
extends java.lang.Object

Installs lower-level type converters required to integrate Joda Time support into Spring's field formatting system.

Since:
3.0
Author:
Keith Donald

Nested Class Summary
private static class JodaTimeConverters.CalendarToReadableInstantConverter
          Used when printing a java.util.Calendar field with a ReadableInstantPrinter.
private static class JodaTimeConverters.DateTimeToCalendarConverter
          Used when binding a parsed DateTime to a java.util.Calendar field.
private static class JodaTimeConverters.DateTimeToDateConverter
          Used when binding a parsed DateTime to a java.util.Date field.
private static class JodaTimeConverters.DateTimeToDateMidnightConverter
          Used when binding a parsed DateTime to a DateMidnight field.
private static class JodaTimeConverters.DateTimeToInstantConverter
          Used when binding a parsed DateTime to an Instant field.
private static class JodaTimeConverters.DateTimeToLocalDateConverter
          Used when binding a parsed DateTime to a LocalDate field.
private static class JodaTimeConverters.DateTimeToLocalDateTimeConverter
          Used when binding a parsed DateTime to a LocalDateTime field.
private static class JodaTimeConverters.DateTimeToLocalTimeConverter
          Used when binding a parsed DateTime to a LocalTime field.
private static class JodaTimeConverters.DateTimeToLongConverter
          Used when binding a parsed DateTime to a java.lang.Long field.
private static class JodaTimeConverters.DateTimeToMutableDateTimeConverter
          Used when binding a parsed DateTime to a MutableDateTime field.
private static class JodaTimeConverters.DateToLongConverter
          Used when printing a java.util.Date field with a MillisecondInstantPrinter.
 
Constructor Summary
JodaTimeConverters()
           
 
Method Summary
static void registerConverters(ConverterRegistry registry)
          Install the converters into the converter registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JodaTimeConverters

JodaTimeConverters()
Method Detail

registerConverters

public static void registerConverters(ConverterRegistry registry)
Install the converters into the converter registry.

Parameters:
registry - the converter registry