org.jomni.JomniBuilder Maven / Gradle / Ivy
The newest version!
package org.jomni;
/**
* JomniMapper builder.
*
* This Builder is designed to be used in a single thread and return a immutable JomniMapper (which can be used in multiple thread)
*/
public class JomniBuilder {
ConverterRegistry convertersOverride = new ConverterRegistry();
public JomniMapper build(){
return new JomniMapper(convertersOverride);
}
public void addTypeConverter(Class source, Class target, TypeConverter typeConverter) {
convertersOverride.addTypeConverter(source, target, typeConverter);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy