Examples of installJodaTimeFormatting()


Examples of org.springframework.format.datetime.joda.JodaTimeFormattingConfigurer.installJodaTimeFormatting()

  protected void installFormatters(FormatterRegistry registry) {
    registry.addFormatterForFieldAnnotation(new NumberFormatAnnotationFormatterFactory());
    if (jodaTimePresent) {
      JodaTimeFormattingConfigurer configurer = new JodaTimeFormattingConfigurer();
      configurer.setUseIsoFormat(true);
      configurer.installJodaTimeFormatting(registry);     
    }
    else {
      registry.addFormatterForFieldAnnotation(new NoJodaDateTimeFormatAnnotationFormatterFactory());
    }
  }
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.