All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nemerosa.ontrack.ui.support.ConversionConfig Maven / Gradle / Ivy

There is a newer version: 4.4.5
Show newest version
package net.nemerosa.ontrack.ui.support;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.ConverterRegistry;

import javax.annotation.PostConstruct;

@Configuration
public class ConversionConfig {

    @Autowired
    private ConverterRegistry converterRegistry;

    @PostConstruct
    public void registerConverters() {
        converterRegistry.addConverter(new IDToString());
        converterRegistry.addConverter(new StringToID());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy