com.caucho.hessian.io
Class SerializerFactory
java.lang.Object
com.caucho.hessian.io.SerializerFactory
public class SerializerFactory
extends java.lang.Object
Factory for returning serialization methods.
_cachedDeserializerMap
private HashMap _cachedDeserializerMap
_cachedSerializerMap
private HashMap _cachedSerializerMap
_cachedTypeDeserializerMap
private HashMap _cachedTypeDeserializerMap
_defaultSerializer
protected Serializer _defaultSerializer
_deserializerMap
private static HashMap _deserializerMap
_hashMapDeserializer
private Deserializer _hashMapDeserializer
_serializerMap
private static HashMap _serializerMap
_typeMap
private static HashMap _typeMap
addBasic
private static void addBasic(Class cl,
String typeName,
int type)
getDefaultDeserializer
protected Deserializer getDefaultDeserializer(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.
cl
- the class of the object that needs to be serialized.
- a serializer object for the serialization.
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.
cl
- the class of the object that needs to be serialized.
- a serializer object for the serialization.
getDeserializer
public Deserializer getDeserializer(Class cl)
throws HessianProtocolException
Returns the deserializer for a class.
cl
- the class of the object that needs to be deserialized.
- a deserializer object for the serialization.
getSerializer
public Serializer getSerializer(Class cl)
throws HessianProtocolException
Returns the serializer for a class.
cl
- the class of the object that needs to be serialized.
- a serializer object for the serialization.