Examples of JodaTimeFormatterRegistrar


Examples of org.springframework.format.datetime.joda.JodaTimeFormatterRegistrar

   * @param formatterRegistry the service to register default formatters against
   */
  public static void addDefaultFormatters(FormatterRegistry formatterRegistry) {
    formatterRegistry.addFormatterForFieldAnnotation(new NumberFormatAnnotationFormatterFactory());
    if (jodaTimePresent) {
      new JodaTimeFormatterRegistrar().registerFormatters(formatterRegistry);
    } else {
      formatterRegistry.addFormatterForFieldAnnotation(new NoJodaDateTimeFormatAnnotationFormatterFactory());
    }
  }
View Full Code Here

Examples of org.springframework.format.datetime.joda.JodaTimeFormatterRegistrar

   * @param formatterRegistry the service to register default formatters against
   */
  public static void addDefaultFormatters(FormatterRegistry formatterRegistry) {
    formatterRegistry.addFormatterForFieldAnnotation(new NumberFormatAnnotationFormatterFactory());
    if (jodaTimePresent) {
      new JodaTimeFormatterRegistrar().registerFormatters(formatterRegistry);
    }
    else {
      new DateFormatterRegistrar().registerFormatters(formatterRegistry);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.