org.eclipse.ecf.remoteservice.rpc.client
Class TrivialParameterServializer

java.lang.Object
  extended by org.eclipse.ecf.remoteservice.rpc.client.TrivialParameterServializer
All Implemented Interfaces:
IRemoteCallParameterSerializer

public class TrivialParameterServializer
extends java.lang.Object
implements IRemoteCallParameterSerializer

Trivial parameter serializer - just copy a parameter value


Constructor Summary
TrivialParameterServializer()
           
 
Method Summary
 IRemoteCallParameter serializeParameter(java.lang.String endpoint, IRemoteCall call, IRemoteCallable callable, IRemoteCallParameter paramDefault, java.lang.Object paramToSerialize)
          All parameters will be serialized in the Apache XML-RPC library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrivialParameterServializer

public TrivialParameterServializer()
Method Detail

serializeParameter

public IRemoteCallParameter serializeParameter(java.lang.String endpoint,
                                               IRemoteCall call,
                                               IRemoteCallable callable,
                                               IRemoteCallParameter paramDefault,
                                               java.lang.Object paramToSerialize)
All parameters will be serialized in the Apache XML-RPC library. We shouldn't serialize any parameters by default.

Specified by:
serializeParameter in interface IRemoteCallParameterSerializer
Parameters:
endpoint - the endpoint. Should not be null.
call - the call associated with the parameter to serialize. Will not be null.
callable - the callable associated with the parameter to serialize. Will not be null.
paramDefault - the default value (from the callable), for the parameter to serialize.
paramToSerialize - the actual parameter value to serialize.
Returns:
the parameter value