com.caucho.hessian.io
Class ContextSerializerFactory

java.lang.Object
  extended by com.caucho.hessian.io.ContextSerializerFactory

public class ContextSerializerFactory
extends java.lang.Object

The classloader-specific Factory for returning serialization


Constructor Summary
ContextSerializerFactory(ContextSerializerFactory parent, java.lang.ClassLoader loader)
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextSerializerFactory

public ContextSerializerFactory(ContextSerializerFactory parent,
                                java.lang.ClassLoader loader)
Method Detail

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

Parameters:
cl - the class of the object that needs to be serialized.
Returns:
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

Parameters:
cl - the class of the object that needs to be deserialized.
Returns:
a deserializer object for the deserialization.