Package org.springframework.format.support

Examples of org.springframework.format.support.DefaultFormattingConversionService.addConverter()


    public DateConvertingAuditableBeanWrapper() {

      DefaultFormattingConversionService conversionService = new DefaultFormattingConversionService();

      if (IS_JODA_TIME_PRESENT) {
        conversionService.addConverter(CalendarToDateTimeConverter.INSTANCE);
        conversionService.addConverter(CalendarToLocalDateTimeConverter.INSTANCE);
      }

      this.conversionService = conversionService;
    }
View Full Code Here


      DefaultFormattingConversionService conversionService = new DefaultFormattingConversionService();

      if (IS_JODA_TIME_PRESENT) {
        conversionService.addConverter(CalendarToDateTimeConverter.INSTANCE);
        conversionService.addConverter(CalendarToLocalDateTimeConverter.INSTANCE);
      }

      this.conversionService = conversionService;
    }
View Full Code Here

  @Bean
  @Qualifier
  public DefaultFormattingConversionService defaultConversionService() {

    DefaultFormattingConversionService conversionService = new DefaultFormattingConversionService();
    conversionService.addConverter(UUIDConverter.INSTANCE);
    configureConversionService(conversionService);

    if (!conversionService.canConvert(String.class, Point.class)) {
      conversionService.addConverter(StringToPointConverter.INSTANCE);
    }
View Full Code Here

    DefaultFormattingConversionService conversionService = new DefaultFormattingConversionService();
    conversionService.addConverter(UUIDConverter.INSTANCE);
    configureConversionService(conversionService);

    if (!conversionService.canConvert(String.class, Point.class)) {
      conversionService.addConverter(StringToPointConverter.INSTANCE);
    }

    if (!conversionService.canConvert(String.class, Distance.class)) {
      conversionService.addConverter(StringToDistanceConverter.INSTANCE);
    }
View Full Code Here

    if (!conversionService.canConvert(String.class, Point.class)) {
      conversionService.addConverter(StringToPointConverter.INSTANCE);
    }

    if (!conversionService.canConvert(String.class, Distance.class)) {
      conversionService.addConverter(StringToDistanceConverter.INSTANCE);
    }

    return conversionService;
  }
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.