Package com.caucho.hessian.io
Class ContextSerializerFactory
- java.lang.Object
-
- com.caucho.hessian.io.ContextSerializerFactory
-
public class ContextSerializerFactory extends Object
The classloader-specific Factory for returning serialization
-
-
Constructor Summary
Constructors Constructor Description ContextSerializerFactory(ContextSerializerFactory parent, ClassLoader loader)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContextSerializerFactorycreate()static ContextSerializerFactorycreate(ClassLoader loader)ClassLoadergetClassLoader()DeserializergetCustomDeserializer(Class cl)Returns a custom deserializer the classSerializergetCustomSerializer(Class cl)Returns a custom serializer the classDeserializergetDeserializer(String className)Returns the deserializer for a given class.SerializergetSerializer(String className)Returns the serializer for a given class.
-
-
-
Constructor Detail
-
ContextSerializerFactory
public ContextSerializerFactory(ContextSerializerFactory parent, ClassLoader loader)
-
-
Method Detail
-
create
public static ContextSerializerFactory create()
-
create
public static ContextSerializerFactory create(ClassLoader loader)
-
getClassLoader
public ClassLoader getClassLoader()
-
getSerializer
public Serializer getSerializer(String className)
Returns the serializer for a given class.
-
getCustomSerializer
public Serializer getCustomSerializer(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(String className)
Returns the deserializer for a given class.
-
getCustomDeserializer
public Deserializer getCustomDeserializer(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.
-
-