public interface SerializerProvider
Modifier and Type | Method and Description |
---|---|
<T> Serializer<T> |
getSerializer(Class<T> subject)
Gets a
serializer for the given subject . |
<T> Serializer<T> |
getSerializer(String subjectClassName)
Gets a
serializer for the given subject . |
<T> Serializer<T> getSerializer(Class<T> subject) throws IllegalArgumentException
serializer
for the given subject
.subject
- subject to get a serializer
forserializer
suitable to
serialize/deserialize the given subject
IllegalArgumentException
- if a serializer
is
not possible fot the given subject
<T> Serializer<T> getSerializer(String subjectClassName) throws IllegalArgumentException, ClassNotFoundException
serializer
for the given subject
.subjectClassName
- class name of the subject to get a
serializer
forserializer
suitable to
serialize/deserialize the given subjectIllegalArgumentException
- if a serializer
is
not possible fot the given subject
ClassNotFoundException
- if the class given by
subjectClassName
is not foundCopyright © 2015. All Rights Reserved.