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
-
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, jdk8DateSerializeMap
-
-
Constructor Summary
Constructors Constructor Description BeanSerializerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DeserializergetDefaultDeserializer(Class cl)Returns the default deserializer for a class that isn't matched directly.protected SerializergetDefaultSerializer(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, getClassFactory, getClassLoader, getCustomDeserializer, getDeserializer, getDeserializer, getFieldDeserializerFactory, getListDeserializer, getListDeserializer, getObjectDeserializer, getObjectDeserializer, getObjectSerializer, getSerializer, isAllowNonSerializable, loadDeserializer, loadSerializedClass, loadSerializer, readList, readMap, readObject, setAllowNonSerializable, setSendCollectionType
-
-
-
-
Method Detail
-
getDefaultSerializer
protected Serializer getDefaultSerializer(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:
getDefaultSerializerin classSerializerFactory- Parameters:
cl- the class of the object that needs to be serialized.- Returns:
- a serializer object for the serialization.
-
getDefaultDeserializer
protected Deserializer getDefaultDeserializer(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:
getDefaultDeserializerin classSerializerFactory- Parameters:
cl- the class of the object that needs to be serialized.- Returns:
- a serializer object for the serialization.
-
-