de.ppi.deepsampler.persistence.PersistentSamplerContext 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 2020 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.BeanFactoryExtension;
import de.ppi.deepsampler.persistence.bean.PersistentBeanFactory;
public class PersistentSamplerContext {
private final PersistentBeanFactory persistentBeanFactory = SamplerBeanFactory.create();
public void addBeanFactoryExtension(BeanFactoryExtension beanFactoryExtension) {
persistentBeanFactory.addExtension(beanFactoryExtension);
}
public PersistentBeanFactory getPersistentBeanFactory() {
return persistentBeanFactory;
}
}