Skip to content

Instantly share code, notes, and snippets.

@noroutine
Created April 22, 2013 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noroutine/5435769 to your computer and use it in GitHub Desktop.
Save noroutine/5435769 to your computer and use it in GitHub Desktop.
@Configurable
public class ApplicationFormattingConversionServiceFactoryBean
extends FormattingConversionServiceFactoryBean {
/.../
@Override
public void afterPropertiesSet() {
super.afterPropertiesSet();
installLabelConverters(getObject());
}
public void installLabelConverters(FormatterRegistry registry) {
// Register application converters and formatters
registry.addConverter(new UserGroupConverter());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment