de.ppi.deepsampler.persistence.SamplerBeanConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deepsampler-persistence Show documentation
Show all versions of deepsampler-persistence Show documentation
This module is the core of the persistence api in DeepSampler.
/*
* 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;
}
}