public class UuidCodecProvider extends Object implements CodecProvider
CodecProvider for UUID Codecs with custom UUID representations| Constructor and Description |
|---|
UuidCodecProvider(UuidRepresentation uuidRepresentation)
Set the UUIDRepresentation to be used in the codec
default is JAVA_LEGACY to be compatible with existing documents
|
| Modifier and Type | Method and Description |
|---|---|
<T> Codec<T> |
get(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 UuidCodecProvider(UuidRepresentation uuidRepresentation)
uuidRepresentation - the representation of UUIDUuidRepresentationpublic <T> Codec<T> get(Class<T> clazz, CodecRegistry registry)
CodecProviderCodec using the given context, which includes, most importantly, the Class for which a Codec is required.get in interface CodecProviderT - 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