org.ros.internal.message
Class DefaultMessageSerializationFactory

java.lang.Object
  extended by org.ros.internal.message.DefaultMessageSerializationFactory
All Implemented Interfaces:
MessageSerializationFactory

public class DefaultMessageSerializationFactory
extends java.lang.Object
implements MessageSerializationFactory


Constructor Summary
DefaultMessageSerializationFactory(MessageDefinitionProvider messageDefinitionProvider)
           
 
Method Summary
<T> MessageDeserializer<T>
newMessageDeserializer(java.lang.String messageType)
           
<T> MessageSerializer<T>
newMessageSerializer(java.lang.String messageType)
           
<T> MessageDeserializer<T>
newServiceRequestDeserializer(java.lang.String serviceType)
           
<T> MessageSerializer<T>
newServiceRequestSerializer(java.lang.String serviceType)
           
<T> MessageDeserializer<T>
newServiceResponseDeserializer(java.lang.String serviceType)
           
<T> MessageSerializer<T>
newServiceResponseSerializer(java.lang.String serviceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageSerializationFactory

public DefaultMessageSerializationFactory(MessageDefinitionProvider messageDefinitionProvider)
Method Detail

newMessageSerializer

public <T> MessageSerializer<T> newMessageSerializer(java.lang.String messageType)
Specified by:
newMessageSerializer in interface MessageSerializationFactory
Parameters:
messageType - the type of message that the new MessageSerializer should serialize
Returns:
a new MessageSerializer for the provided message type

newMessageDeserializer

public <T> MessageDeserializer<T> newMessageDeserializer(java.lang.String messageType)
Specified by:
newMessageDeserializer in interface MessageSerializationFactory
Parameters:
messageType - the type of message that the new MessageDeserializer should deserialize
Returns:
a new MessageDeserializer for the provided message type

newServiceRequestSerializer

public <T> MessageSerializer<T> newServiceRequestSerializer(java.lang.String serviceType)
Specified by:
newServiceRequestSerializer in interface MessageSerializationFactory
Parameters:
serviceType - the type of service that the new MessageSerializer should serialize requests for
Returns:
a new MessageSerializer for requests to the provided service type

newServiceRequestDeserializer

public <T> MessageDeserializer<T> newServiceRequestDeserializer(java.lang.String serviceType)
Specified by:
newServiceRequestDeserializer in interface MessageSerializationFactory
Parameters:
serviceType - the type of service that the new MessageDeserializer should deserialize requests for
Returns:
a new MessageDeserializer for requests to the provided service type

newServiceResponseSerializer

public <T> MessageSerializer<T> newServiceResponseSerializer(java.lang.String serviceType)
Specified by:
newServiceResponseSerializer in interface MessageSerializationFactory
Parameters:
serviceType - the type of service that the new MessageSerializer should serialize responses for
Returns:
a new MessageSerializer for responses from the provided service type

newServiceResponseDeserializer

public <T> MessageDeserializer<T> newServiceResponseDeserializer(java.lang.String serviceType)
Specified by:
newServiceResponseDeserializer in interface MessageSerializationFactory
Parameters:
serviceType - the type of service that the new MessageDeserializer should deserialize responses for
Returns:
a new MessageDeserializer for responses from the provided service type