Class BsonKeysProvider

java.lang.Object
io.micronaut.serde.bson.BsonKeysProvider
All Implemented Interfaces:
KeysProvider

@Internal public final class BsonKeysProvider extends Object implements KeysProvider
Contributes BSON key data to Keys.
Since:
3.1
Author:
Denis Stepanov
  • Constructor Details

    • BsonKeysProvider

      public BsonKeysProvider()
  • Method Details

    • keysType

      public Class<?> keysType()
      Description copied from interface: KeysProvider
      The contribution type supplied by this provider.
      Specified by:
      keysType in interface KeysProvider
      Returns:
      The contribution type
    • create

      public Object[] create(List<String> keys)
      Description copied from interface: KeysProvider
      Create backend-specific data for the supplied keys. The returned value must be safe to reuse across encoder and decoder instances.
      Specified by:
      create in interface KeysProvider
      Parameters:
      keys - The keys
      Returns:
      The backend-specific data