public final class PojoCodecProvider extends java.lang.Object implements CodecProvider
Modifier and Type | Class and Description |
---|---|
static class |
PojoCodecProvider.Builder
A Builder for the PojoCodecProvider
|
Modifier and Type | Method and Description |
---|---|
static PojoCodecProvider.Builder |
builder()
Creates a Builder so classes or packages can be registered and configured before creating an immutable CodecProvider.
|
<T> Codec<T> |
get(java.lang.Class<T> clazz,
CodecRegistry registry)
Get a
Codec using the given context, which includes, most importantly, the Class for which a Codec is required. |
public static PojoCodecProvider.Builder builder()
PojoCodecProvider.Builder.register(Class[])
public <T> Codec<T> get(java.lang.Class<T> clazz, CodecRegistry registry)
CodecProvider
Codec
using the given context, which includes, most importantly, the Class for which a Codec
is required.get
in interface CodecProvider
T
- the type of the class for which a Codec is requiredclazz
- the Class for which to get a Codecregistry
- the registry to use for resolving dependent Codec instances