com.khubla.pragmatach.plugin.cluster.serialization
Class GenericJSONSerializer<T>

java.lang.Object
  extended by com.khubla.pragmatach.plugin.cluster.serialization.GenericJSONSerializer<T>

public class GenericJSONSerializer<T>
extends Object

Author:
tome

Constructor Summary
GenericJSONSerializer()
           
 
Method Summary
 T deserialize(T t, String json)
          deserialize
 String serialize(T t)
          serialize object to JSON
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericJSONSerializer

public GenericJSONSerializer()
Method Detail

deserialize

public T deserialize(T t,
                     String json)
              throws PragmatachException
deserialize

Throws:
PragmatachException

serialize

public String serialize(T t)
                 throws PragmatachException
serialize object to JSON

Throws:
PragmatachException


Copyright © 2014 khubla.com. All rights reserved.