com.googlecode.jpattern.gwt.client.communication.rest
Class GenericsObjectSerializer<T>

java.lang.Object
  extended by com.googlecode.jpattern.gwt.client.communication.rest.GenericsObjectSerializer<T>
All Implemented Interfaces:
IObjectSerializer<T>

public class GenericsObjectSerializer<T>
extends Object
implements IObjectSerializer<T>

Author:
Francesco Cina'

Constructor Summary
GenericsObjectSerializer(Class<T> aClass)
           
 
Method Summary
 T deserialize(IBeanFactory beanFactory, String json)
           
 String serialize(IBeanFactory beanFactory, T bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericsObjectSerializer

public GenericsObjectSerializer(Class<T> aClass)
Method Detail

deserialize

public T deserialize(IBeanFactory beanFactory,
                     String json)
Specified by:
deserialize in interface IObjectSerializer<T>

serialize

public String serialize(IBeanFactory beanFactory,
                        T bean)
Specified by:
serialize in interface IObjectSerializer<T>


Copyright © 2011. All Rights Reserved.