com.caucho.hessian.io
类 ContextSerializerFactory

java.lang.Object
  继承者 com.caucho.hessian.io.ContextSerializerFactory

public class ContextSerializerFactory
extends java.lang.Object

The classloader-specific Factory for returning serialization


构造方法摘要
ContextSerializerFactory(ContextSerializerFactory parent, java.lang.ClassLoader loader)
           
 
方法摘要
static ContextSerializerFactory create()
           
static ContextSerializerFactory create(java.lang.ClassLoader loader)
           
 java.lang.ClassLoader getClassLoader()
           
 Deserializer getCustomDeserializer(java.lang.Class cl)
          Returns a custom deserializer the class
 Serializer getCustomSerializer(java.lang.Class cl)
          Returns a custom serializer the class
 Deserializer getDeserializer(java.lang.String className)
          Returns the deserializer for a given class.
 Serializer getSerializer(java.lang.String className)
          Returns the serializer for a given class.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ContextSerializerFactory

public ContextSerializerFactory(ContextSerializerFactory parent,
                                java.lang.ClassLoader loader)
方法详细信息

create

public static ContextSerializerFactory create()

create

public static ContextSerializerFactory create(java.lang.ClassLoader loader)

getClassLoader

public java.lang.ClassLoader getClassLoader()

getSerializer

public Serializer getSerializer(java.lang.String className)
Returns the serializer for a given class.


getCustomSerializer

public Serializer getCustomSerializer(java.lang.Class cl)
Returns a custom serializer the class

参数:
cl - the class of the object that needs to be serialized.
返回:
a serializer object for the serialization.

getDeserializer

public Deserializer getDeserializer(java.lang.String className)
Returns the deserializer for a given class.


getCustomDeserializer

public Deserializer getCustomDeserializer(java.lang.Class cl)
Returns a custom deserializer the class

参数:
cl - the class of the object that needs to be deserialized.
返回:
a deserializer object for the deserialization.