Class BsonKeysProvider
java.lang.Object
io.micronaut.serde.bson.BsonKeysProvider
- All Implemented Interfaces:
KeysProvider
Contributes BSON key data to
Keys.- Since:
- 3.1
- Author:
- Denis Stepanov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]Create backend-specific data for the supplied keys.Object[]createWithMetadata(List<KeyDescriptor> keys, boolean caseInsensitive) Create backend-specific data for keys with pre-resolved serde configuration.Class<?> keysType()The contribution type supplied by this provider.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface KeysProvider
create
-
Constructor Details
-
BsonKeysProvider
public BsonKeysProvider()
-
-
Method Details
-
keysType
Description copied from interface:KeysProviderThe contribution type supplied by this provider.- Specified by:
keysTypein interfaceKeysProvider- Returns:
- The contribution type
-
create
Description copied from interface:KeysProviderCreate backend-specific data for the supplied keys. The returned value must be safe to reuse across encoder and decoder instances.- Specified by:
createin interfaceKeysProvider- Parameters:
keys- The keys- Returns:
- The backend-specific data
-
createWithMetadata
Description copied from interface:KeysProviderCreate backend-specific data for keys with pre-resolved serde configuration.The default implementation preserves compatibility with providers that only need key names.
- Specified by:
createWithMetadatain interfaceKeysProvider- Parameters:
keys- The key descriptorscaseInsensitive- Whether key matching should be case-insensitive- Returns:
- The backend-specific data
-