it.amattioli.dominate.morphia.MorphiaSessionManager Maven / Gradle / Ivy
package it.amattioli.dominate.morphia;
import java.net.UnknownHostException;
import java.util.Collection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import org.apache.commons.collections.Closure;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.code.morphia.Datastore;
import com.google.code.morphia.Morphia;
import com.mongodb.Mongo;
import it.amattioli.dominate.sessions.SessionManager;
import it.amattioli.dominate.sessions.SessionMode;
public class MorphiaSessionManager implements SessionManager {
private static final Logger logger = LoggerFactory.getLogger(MorphiaSessionManager.class);
private static final ThreadLocal