|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.plugins.s11n.json.SerializerFactory
public final class SerializerFactory
A factory for serializers.
Method Summary | ||
---|---|---|
static
|
addSerializer(java.lang.Class<T> clazz,
Serializer<T> serializer)
Add a new serializer. |
|
static boolean |
canCreate(java.lang.Class<?> clazz)
Query if a serializer is available for a specified class. |
|
static
|
create(java.lang.Class<T> clazz)
Create a serializer for a specified class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Serializer<T> create(java.lang.Class<T> clazz)
T
- The type of serializer to create.clazz
- Class representing the type to serialize.
public static <T> void addSerializer(java.lang.Class<T> clazz, Serializer<T> serializer)
T
- The type to be serialized / deserialized.clazz
- The class representing type T.serializer
- The corresponding serializer.public static boolean canCreate(java.lang.Class<?> clazz)
clazz
- The class to check.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |