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

de.ppi.deepsampler.persistence.SamplerBeanConverter Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
/*
 * Copyright 2022 PPI AG (Hamburg, Germany)
 * This program is made available under the terms of the MIT License.
 */

package de.ppi.deepsampler.persistence;

import de.ppi.deepsampler.persistence.bean.ext.CollectionExtension;
import de.ppi.deepsampler.persistence.bean.ext.MapPrimitiveKeyExtension;
import de.ppi.deepsampler.persistence.bean.ext.JavaTimeExtension;
import de.ppi.deepsampler.persistence.bean.PersistentBeanConverter;

public class SamplerBeanConverter {

    private SamplerBeanConverter() {
        // static only
    }

    static PersistentBeanConverter create() {
        PersistentBeanConverter persistentBeanConverter = new PersistentBeanConverter();
        persistentBeanConverter.addExtension(new JavaTimeExtension());
        persistentBeanConverter.addExtension(new MapPrimitiveKeyExtension());
        persistentBeanConverter.addExtension(new CollectionExtension());
        return persistentBeanConverter;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy