Class DataCodecRegistry

java.lang.Object
io.micronaut.configuration.mongo.core.serde.DataCodecRegistry
All Implemented Interfaces:
org.bson.codecs.configuration.CodecProvider, org.bson.codecs.configuration.CodecRegistry

@Internal public final class DataCodecRegistry extends Object implements org.bson.codecs.configuration.CodecRegistry
The Micronaut Serialization codec registry.
Since:
4.4
Author:
Denis Stepanov
  • Constructor Summary

    Constructors
    Constructor
    Description
    DataCodecRegistry(@Nullable Collection<Class<?>> entities, io.micronaut.serde.SerdeRegistry serdeRegistry)
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> org.bson.codecs.Codec<T>
    get(Class<T> clazz)
     
    <T> org.bson.codecs.Codec<T>
    get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bson.codecs.configuration.CodecProvider

    get

    Methods inherited from interface org.bson.codecs.configuration.CodecRegistry

    get
  • Constructor Details

    • DataCodecRegistry

      public DataCodecRegistry(@Nullable @Nullable Collection<Class<?>> entities, io.micronaut.serde.SerdeRegistry serdeRegistry)
      Default constructor.
      Parameters:
      entities - The entities
      serdeRegistry - The serde registry
  • Method Details

    • get

      public <T> org.bson.codecs.Codec<T> get(Class<T> clazz)
      Specified by:
      get in interface org.bson.codecs.configuration.CodecRegistry
    • get

      public <T> org.bson.codecs.Codec<T> get(Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry)
      Specified by:
      get in interface org.bson.codecs.configuration.CodecProvider