org.gwtwidgets.server.spring
Interface SerializationPolicyProvider

All Known Implementing Classes:
DefaultSerializationPolicyProvider

public interface SerializationPolicyProvider

Implementations of this interface can be consulted by the GWTRPCServiceExporter to provide serialization policies for a specific request

Author:
George Georgovassilis, g.georgovassilis[at]gmail.com

Method Summary
 com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicyForFailure(com.google.gwt.user.server.rpc.RPCRequest request, java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] parameters, java.lang.Throwable exception)
          This method returns the appropriate serialization policy in case of a failed service invocation
 com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicyForSuccess(com.google.gwt.user.server.rpc.RPCRequest request, java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] parameters, java.lang.Object result)
          This method returns the appropriate serialization policy in case of a successful service invocation
 

Method Detail

getSerializationPolicyForSuccess

com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicyForSuccess(com.google.gwt.user.server.rpc.RPCRequest request,
                                                                                    java.lang.Object target,
                                                                                    java.lang.reflect.Method method,
                                                                                    java.lang.Object[] parameters,
                                                                                    java.lang.Object result)
This method returns the appropriate serialization policy in case of a successful service invocation

Parameters:
request - The RPCRequest
target - The service object on which the method was invoked
method - The method invoked
parameters - Arguments provided to the method invoked
result - The result returned by the method
Returns:
SerializationPolicy to use. If null is returned, then the default serialization policy will be used

getSerializationPolicyForFailure

com.google.gwt.user.server.rpc.SerializationPolicy getSerializationPolicyForFailure(com.google.gwt.user.server.rpc.RPCRequest request,
                                                                                    java.lang.Object target,
                                                                                    java.lang.reflect.Method method,
                                                                                    java.lang.Object[] parameters,
                                                                                    java.lang.Throwable exception)
This method returns the appropriate serialization policy in case of a failed service invocation

Parameters:
request - The RPCRequest
target - The service object on which the method was invoked
method - The method invoked
parameters - Arguments provided to the method invoked
exception - The exception thrown while invoking the method
Returns:
SerializationPolicy to use. If null is returned, then the default serialization policy will be used


Copyright © 2011. All Rights Reserved.