public interface CodecService
Modifier and Type | Method and Description |
---|---|
<T> JsonCodec<T> |
getCodec(Class<T> entityClass)
Returns the JSON codec for the specified entity class.
|
Set<Class<?>> |
getCodecs()
Returns the set of classes with currently registered codecs.
|
<T> void |
registerCodec(Class<T> entityClass,
JsonCodec<T> codec)
Registers the specified JSON codec for the given entity class.
|
void |
unregisterCodec(Class<?> entityClass)
Unregisters the JSON codec for the specified entity class.
|
Set<Class<?>> getCodecs()
<T> JsonCodec<T> getCodec(Class<T> entityClass)
T
- entity typeentityClass
- entity class<T> void registerCodec(Class<T> entityClass, JsonCodec<T> codec)
T
- entity typeentityClass
- entity classcodec
- JSON codecvoid unregisterCodec(Class<?> entityClass)
entityClass
- entity class