net.nemerosa.ontrack.ui.support.ConversionConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ontrack-ui-support Show documentation
Show all versions of ontrack-ui-support Show documentation
Ontrack module: ontrack-ui-support
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