com.googlecode.jpattern.gwt.client.serializer
Class AutoBeanObjectSerializer<T>

java.lang.Object
  extended by com.googlecode.jpattern.gwt.client.serializer.AutoBeanObjectSerializer<T>
All Implemented Interfaces:
IObjectSerializer<T>

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

Author:
Francesco Cina'

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

Constructor Detail

AutoBeanObjectSerializer

public AutoBeanObjectSerializer(IBeanFactory beanFactory,
                                Class<T> aClass)
Method Detail

deserialize

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

serialize

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

getSerializerClass

public Class<T> getSerializerClass()
Specified by:
getSerializerClass in interface IObjectSerializer<T>


Copyright © 2011. All Rights Reserved.