com.caucho.hessian.io
Class ExtSerializerFactory

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializerFactory
      extended by com.caucho.hessian.io.ExtSerializerFactory

public class ExtSerializerFactory
extends AbstractSerializerFactory

Factory for returning serialization methods.


Constructor Summary
ExtSerializerFactory()
           
 
Method Summary
 void addDeserializer(java.lang.Class cl, Deserializer deserializer)
          Adds a deserializer.
 void addSerializer(java.lang.Class cl, Serializer serializer)
          Adds a serializer.
 Deserializer getDeserializer(java.lang.Class cl)
          Returns the deserializer for a class.
 Serializer getSerializer(java.lang.Class cl)
          Returns the serializer for a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtSerializerFactory

public ExtSerializerFactory()
Method Detail

addSerializer

public void addSerializer(java.lang.Class cl,
                          Serializer serializer)
Adds a serializer.

Parameters:
cl - the class of the serializer
serializer - the serializer

addDeserializer

public void addDeserializer(java.lang.Class cl,
                            Deserializer deserializer)
Adds a deserializer.

Parameters:
cl - the class of the deserializer
deserializer - the deserializer

getSerializer

public Serializer getSerializer(java.lang.Class cl)
                         throws HessianProtocolException
Returns the serializer for a class.

Specified by:
getSerializer in class AbstractSerializerFactory
Parameters:
cl - the class of the object that needs to be serialized.
Returns:
a serializer object for the serialization.
Throws:
HessianProtocolException

getDeserializer

public Deserializer getDeserializer(java.lang.Class cl)
                             throws HessianProtocolException
Returns the deserializer for a class.

Specified by:
getDeserializer in class AbstractSerializerFactory
Parameters:
cl - the class of the object that needs to be deserialized.
Returns:
a deserializer object for the serialization.
Throws:
HessianProtocolException