|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.hessian.io.AbstractSerializerFactory
com.caucho.hessian.io.SerializerFactory
com.alipay.hessian.generic.io.GenericSerializerFactory
public class GenericSerializerFactory
| Field Summary |
|---|
| Fields inherited from class com.caucho.hessian.io.SerializerFactory |
|---|
_cachedDeserializerMap, _cachedSerializerMap, _cachedTypeDeserializerMap, _collectionSerializer, _defaultSerializer, _factories, _hashMapDeserializer, _isAllowNonSerializable, _staticDeserializerMap, _staticSerializerMap, _staticTypeMap, classNameResolver, OBJECT_DESERIALIZER |
| Constructor Summary | |
|---|---|
GenericSerializerFactory()
|
|
| Method Summary | |
|---|---|
void |
addGenericFactory(AbstractGenericSerializerFactory factory)
Adds a factory. |
protected com.caucho.hessian.io.Serializer |
getDefaultSerializer(Class cl)
重写此方法主要是为了保证类不实现Serializable接口也可序列化 |
com.caucho.hessian.io.Deserializer |
getDeserializer(String type)
Returns a deserializer based on a string type. |
com.caucho.hessian.io.Serializer |
getSerializer(Class cl)
Returns the serializer for a class. |
| Methods inherited from class com.caucho.hessian.io.SerializerFactory |
|---|
addBasic, addFactory, getClassNameResolver, getDefaultDeserializer, getDeserializer, getObjectDeserializer, getObjectDeserializer, isAllowNonSerializable, readList, readMap, readObject, setAllowNonSerializable, setClassNameResolver, setSendCollectionType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericSerializerFactory()
| Method Detail |
|---|
public void addGenericFactory(AbstractGenericSerializerFactory factory)
public com.caucho.hessian.io.Serializer getSerializer(Class cl)
throws com.caucho.hessian.io.HessianProtocolException
com.caucho.hessian.io.SerializerFactory
getSerializer in class com.caucho.hessian.io.SerializerFactorycl - the class of the object that needs to be serialized.
com.caucho.hessian.io.HessianProtocolExceptionprotected com.caucho.hessian.io.Serializer getDefaultSerializer(Class cl)
getDefaultSerializer in class com.caucho.hessian.io.SerializerFactorycl - Class
public com.caucho.hessian.io.Deserializer getDeserializer(String type)
throws com.caucho.hessian.io.HessianProtocolException
com.caucho.hessian.io.SerializerFactory
getDeserializer in class com.caucho.hessian.io.SerializerFactorycom.caucho.hessian.io.HessianProtocolException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||