public class ContextSerializerFactory extends Object
Constructor and Description |
---|
ContextSerializerFactory(ContextSerializerFactory parent,
ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
static ContextSerializerFactory |
create() |
static ContextSerializerFactory |
create(ClassLoader loader) |
ClassLoader |
getClassLoader() |
Deserializer |
getCustomDeserializer(Class cl)
Returns a custom deserializer the class
|
Serializer |
getCustomSerializer(Class cl)
Returns a custom serializer the class
|
Deserializer |
getDeserializer(String className)
Returns the deserializer for a given class.
|
Serializer |
getSerializer(String className)
Returns the serializer for a given class.
|
public ContextSerializerFactory(ContextSerializerFactory parent, ClassLoader loader)
public static ContextSerializerFactory create()
public static ContextSerializerFactory create(ClassLoader loader)
public ClassLoader getClassLoader()
public Serializer getSerializer(String className)
public Serializer getCustomSerializer(Class cl)
cl
- the class of the object that needs to be serialized.public Deserializer getDeserializer(String className)
public Deserializer getCustomDeserializer(Class cl)
cl
- the class of the object that needs to be deserialized.Copyright © 2023. All rights reserved.