Example usage for org.springframework.format FormatterRegistrar interface-usage

List of usage examples for org.springframework.format FormatterRegistrar interface-usage

Introduction

In this page you can find the example usage for org.springframework.format FormatterRegistrar interface-usage.

Usage

From source file cherry.foundation.type.format.DelegateFormatterRegistrar.java

public class DelegateFormatterRegistrar implements FormatterRegistrar {

    private List<?> formatters;

    public void setFormatters(List<?> formatters) {
        this.formatters = formatters;

From source file cherry.foundation.type.converter.CodeSqlConverterRegistrar.java

public class CodeSqlConverterRegistrar implements FormatterRegistrar {

    @Override
    public void registerFormatters(FormatterRegistry registry) {
        registry.addConverter(new DeletedFlagConverter());
        registry.addConverter(new FlagCodeConverter());

From source file cherry.foundation.type.converter.JodaTimeSqlConverterRegistrar.java

public class JodaTimeSqlConverterRegistrar implements FormatterRegistrar {

    @Override
    public void registerFormatters(FormatterRegistry registry) {
        registry.addConverter(new LocalDateConverter());
        registry.addConverter(new SqlDateConverter());

From source file cherry.foundation.type.converter.SecureTypeSqlConverterRegistrar.java

public class SecureTypeSqlConverterRegistrar implements FormatterRegistrar {

    @Override
    public void registerFormatters(FormatterRegistry registry) {
        registry.addConverter(new SecureStringConverter());
        registry.addConverter(new SecureIntegerConverter());