play.modules.morphia.utils
Class ObjectIdGsonAdapter

java.lang.Object
  extended by play.modules.morphia.utils.ObjectIdGsonAdapter

public class ObjectIdGsonAdapter
extends java.lang.Object


Constructor Summary
ObjectIdGsonAdapter()
           
 
Method Summary
 ObjectId deserialize(JsonElement json, java.lang.reflect.Type typeOfT, JsonDeserializationContext context)
           
 JsonElement serialize(ObjectId src, java.lang.reflect.Type typeOfSrc, JsonSerializationContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectIdGsonAdapter

public ObjectIdGsonAdapter()
Method Detail

deserialize

public ObjectId deserialize(JsonElement json,
                            java.lang.reflect.Type typeOfT,
                            JsonDeserializationContext context)
                     throws JsonParseException
Throws:
JsonParseException

serialize

public JsonElement serialize(ObjectId src,
                             java.lang.reflect.Type typeOfSrc,
                             JsonSerializationContext context)