Package com.caucho.hessian.io
Class BeanSerializerFactory
java.lang.Object
com.caucho.hessian.io.AbstractSerializerFactory
com.caucho.hessian.io.SerializerFactory
com.caucho.hessian.io.BeanSerializerFactory
Factory for returning serialization methods.
-
Field Summary
Fields inherited from class com.caucho.hessian.io.SerializerFactory
_collectionSerializer, _defaultSerializer, _factories, _mapSerializer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Deserializer
Returns the default deserializer for a class that isn't matched directly.protected Serializer
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
-
Constructor Details
-
BeanSerializerFactory
public BeanSerializerFactory()
-
-
Method Details
-
getDefaultSerializer
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 classSerializerFactory
- Parameters:
cl
- the class of the object that needs to be serialized.- Returns:
- a serializer object for the serialization.
-
getDefaultDeserializer
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 classSerializerFactory
- Parameters:
cl
- the class of the object that needs to be serialized.- Returns:
- a serializer object for the serialization.
-