Package org.springframework.format.datetime.joda

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


   * Install formatters and set ISO formatting to true
   */
  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


   * Subclasses may override to customize the set of formatters and/or converters that are installed.
   */
  protected void installFormatters(FormatterRegistry registry) {
    registry.addFormatterForFieldAnnotation(new NumberFormatAnnotationFormatterFactory());
    if (jodaTimePresent) {
      new JodaTimeFormattingConfigurer().installJodaTimeFormatting(registry);     
    }
    else {
      registry.addFormatterForFieldAnnotation(new NoJodaDateTimeFormatAnnotationFormatterFactory());
    }
  }
View Full Code Here

   * Subclasses may override to customize the set of formatters and/or converters that are installed.
   */
  protected void installFormatters(FormatterRegistry registry) {
    registry.addFormatterForFieldAnnotation(new NumberFormatAnnotationFormatterFactory());
    if (jodaTimePresent) {
      new JodaTimeFormattingConfigurer().installJodaTimeFormatting(registry);     
    }
    else {
      registry.addFormatterForFieldAnnotation(new NoJodaDateTimeFormatAnnotationFormatterFactory());
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.format.datetime.joda.JodaTimeFormattingConfigurer

Copyright © 2018 www.massapicom. 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.