public class ContextSerializerFactory extends Object
| 构造器和说明 |
|---|
ContextSerializerFactory(ContextSerializerFactory parent,
ClassLoader loader) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2011–2024 The Apache Software Foundation. All rights reserved.