com.khubla.pragmatach.plugin.mongodb.serializer
Class BasicObjectSerializer

java.lang.Object
  extended by com.khubla.pragmatach.plugin.mongodb.serializer.BasicObjectSerializer
All Implemented Interfaces:
ObjectSerializer

public class BasicObjectSerializer
extends Object
implements ObjectSerializer

Author:
tom

Constructor Summary
BasicObjectSerializer(Class<?> typeClazz)
          ctor
 
Method Summary
 Object deserialize(com.mongodb.DBObject dbObject)
          deserialize
 Class<?> getTypeClazz()
           
 com.mongodb.BasicDBObject serialize(Object object)
          serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicObjectSerializer

public BasicObjectSerializer(Class<?> typeClazz)
ctor

Method Detail

deserialize

public Object deserialize(com.mongodb.DBObject dbObject)
                   throws PragmatachException
deserialize

Specified by:
deserialize in interface ObjectSerializer
Throws:
PragmatachException

getTypeClazz

public Class<?> getTypeClazz()

serialize

public com.mongodb.BasicDBObject serialize(Object object)
                                    throws PragmatachException
serialize

Specified by:
serialize in interface ObjectSerializer
Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.