com.caucho.hessian.io
Class AbstractSerializerFactory

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializerFactory
Direct Known Subclasses:
ExtSerializerFactory, JMXSerializerFactory, SerializerFactory

public abstract class AbstractSerializerFactory
extends java.lang.Object

Factory for returning serialization methods.


Constructor Summary
AbstractSerializerFactory()
           
 
Method Summary
abstract  Deserializer getDeserializer(java.lang.Class cl)
          Returns the deserializer for a class.
abstract  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

AbstractSerializerFactory

public AbstractSerializerFactory()
Method Detail

getSerializer

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

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

getDeserializer

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

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