public class ObjectIdDeserializer
extends com.fasterxml.jackson.databind.JsonDeserializer<org.bson.types.ObjectId>
ObjectId
s, which deserializes a String as an ObjectId by
creating the ObjectId through ObjectId.ObjectId(String)
.Constructor and Description |
---|
ObjectIdDeserializer() |
Modifier and Type | Method and Description |
---|---|
org.bson.types.ObjectId |
deserialize(com.fasterxml.jackson.core.JsonParser jsonParser,
com.fasterxml.jackson.databind.DeserializationContext context) |
public org.bson.types.ObjectId deserialize(com.fasterxml.jackson.core.JsonParser jsonParser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
deserialize
in class com.fasterxml.jackson.databind.JsonDeserializer<org.bson.types.ObjectId>
IOException
Copyright © 2015 CrafterCMS. All Rights Reserved.