com.lordofthejars.nosqlunit.mongodb.EmbeddedMongoInstancesFactory Maven / Gradle / Ivy
package com.lordofthejars.nosqlunit.mongodb;
import com.lordofthejars.nosqlunit.util.EmbeddedInstances;
import com.mongodb.MongoClient;
public class EmbeddedMongoInstancesFactory {
private static EmbeddedInstances embeddedInstances;
private EmbeddedMongoInstancesFactory() {
super();
}
public synchronized static EmbeddedInstances getInstance() {
if(embeddedInstances == null) {
embeddedInstances = new EmbeddedInstances<>();
}
return embeddedInstances;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy