return conversionService;
}
public void addConverters(ConversionService service) {
if (service instanceof ConverterRegistry) {
ConverterRegistry registry = (ConverterRegistry) service;
registry.addConverter(new DateToStringConverter());
registry.addConverter(new DateToLongConverter());
registry.addConverter(new StringToDateConverter());
registry.addConverter(new NumberToDateConverter());
registry.addConverter(new EnumToStringConverter());
registry.addConverter(new EnumToIntegerConverter());
registry.addConverter(new ShapeToStringConverter());
registry.addConverter(new StringToShapeConverter());
registry.addConverter(new PointToStringConverter());
registry.addConverter(new StringToPointConverter());
registry.addConverterFactory(new StringToEnumConverterFactory());
registry.addConverterFactory(new NumberToEnumConverterFactory());
} else {
throw new IllegalArgumentException("conversionservice is no ConverterRegistry:" + service);
}
}