Package com.fauna.codec
Interface CodecProvider
-
- All Known Implementing Classes:
DefaultCodecProvider
public interface CodecProvider
Interface for providing codecs. Responsible for obtaining codecs for specific classes and types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Codec<T>
get(java.lang.Class<T> clazz)
Retrieves a codec for the specified class type.<T> Codec<T>
get(java.lang.Class<T> clazz, java.lang.reflect.Type[] typeArgs)
Retrieves a codec for the specified class type with additional type arguments for generic classes.
-
-
-
Method Detail
-
get
<T> Codec<T> get(java.lang.Class<T> clazz)
Retrieves a codec for the specified class type.- Type Parameters:
T
- The type of the class.- Parameters:
clazz
- The class type for which to obtain a codec.- Returns:
- A codec capable of serializing and deserializing instances of the specified class.
-
get
<T> Codec<T> get(java.lang.Class<T> clazz, java.lang.reflect.Type[] typeArgs)
Retrieves a codec for the specified class type with additional type arguments for generic classes.- Type Parameters:
T
- The type of the class.- Parameters:
clazz
- The class type for which to obtain a codec.typeArgs
- The generic type arguments, if applicable.- Returns:
- A codec capable of serializing and deserializing instances of the specified class with the provided type arguments.
-
-