001    package com.khubla.pragmatach.plugin.mongodb.serializer;
002    
003    import com.khubla.pragmatach.framework.api.PragmatachException;
004    import com.mongodb.BasicDBObject;
005    import com.mongodb.DBObject;
006    
007    /**
008     * @author tom
009     */
010    public interface ObjectSerializer {
011       Object deserialize(DBObject dbObject) throws PragmatachException;
012    
013       BasicDBObject serialize(Object object) throws PragmatachException;
014    }