Spring Framework
@Override public void addFormatters (FormatterRegistry registry) { AddressFormatAnnotationFormatterFactory factory = new AddressFormatAnnotationFormatterFactory(); registry.addFormatterForFieldAnnotation(factory); }
@Override public void addFormatters (FormatterRegistry registry) { registry.addConverter(new TradeIdToTradeConverter(tradeService())); }
@Override public void addFormatters (FormatterRegistry registry) { AddressFormatter addressFormatter = new AddressFormatter(); addressFormatter.setStyle(AddressFormatter.Style.REGION); registry.addFormatter(addressFormatter); }