com.caucho.hessian.io
Class BeanSerializerFactory

java.lang.Object
  extended by com.caucho.hessian.io.AbstractSerializerFactory
      extended by com.caucho.hessian.io.SerializerFactory
          extended by com.caucho.hessian.io.BeanSerializerFactory

public class BeanSerializerFactory
extends SerializerFactory

Factory for returning serialization methods.


Field Summary
 
Fields inherited from class com.caucho.hessian.io.SerializerFactory
_collectionSerializer, _defaultSerializer, _factories, _mapSerializer
 
Constructor Summary
BeanSerializerFactory()
           
 
Method Summary
protected  Deserializer getDefaultDeserializer(java.lang.Class cl)
          Returns the default deserializer for a class that isn't matched directly.
protected  Serializer getDefaultSerializer(java.lang.Class cl)
          Returns the default serializer for a class that isn't matched directly.
 
Methods inherited from class com.caucho.hessian.io.SerializerFactory
addFactory, createDefault, getClassLoader, getCustomDeserializer, getDeserializer, getDeserializer, getListDeserializer, getListDeserializer, getObjectDeserializer, getObjectDeserializer, getObjectSerializer, getSerializer, isAllowNonSerializable, loadDeserializer, loadSerializer, readList, readMap, readObject, setAllowNonSerializable, setSendCollectionType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanSerializerFactory

public BeanSerializerFactory()
Method Detail

getDefaultSerializer

protected Serializer getDefaultSerializer(java.lang.Class cl)
Returns the default serializer for a class that isn't matched directly. Application can override this method to produce bean-style serialization instead of field serialization.

Overrides:
getDefaultSerializer in class SerializerFactory
Parameters:
cl - the class of the object that needs to be serialized.
Returns:
a serializer object for the serialization.

getDefaultDeserializer

protected Deserializer getDefaultDeserializer(java.lang.Class cl)
Returns the default deserializer for a class that isn't matched directly. Application can override this method to produce bean-style serialization instead of field serialization.

Overrides:
getDefaultDeserializer in class SerializerFactory
Parameters:
cl - the class of the object that needs to be serialized.
Returns:
a serializer object for the serialization.