com.googlecode.gwt.test.rpc.GwtRpcSerializerHandler Maven / Gradle / Ivy
package com.googlecode.gwt.test.rpc;
/**
*
* An interface which exposes one callback method to be called in order to simulate GWT-RPC
* serialization. It is called when simulating the serialization of RPC method parameters from the
* client and when returning the method result from the server.
*
*
*
* The used instance of GwtRpcSerializerHandler is specified by
* {@link RemoteServiceCreateHandler#getSerializerHandler()}, which can be overriden.
*
*
* @author Gael Lazzari
*/
public interface GwtRpcSerializerHandler {
/**
* The callback method which is called during serialization form the client to the server and
* from the server back to the client.
*
* @param Type type of the object to serialize.
* @param o The object to serialized
* @return The new instance of the object, after its serialization.
* @throws Exception If any error occurs during the serialization process.
*/
public T serializeUnserialize(T o) throws Exception;
}