Class ConverterProviderResolver
java.lang.Object
software.amazon.awssdk.enhanced.dynamodb.internal.converter.ConverterProviderResolver
Static module to assist with the initialization of attribute converter providers for a StaticTableSchema.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeConverterProvider
Static provider for the default attribute converters that are bundled with the DynamoDB Enhanced Client.static AttributeConverterProvider
resolveProviders
(List<AttributeConverterProvider> providers) Resolves a list of attribute converter providers into a single provider.
-
Method Details
-
defaultConverterProvider
Static provider for the default attribute converters that are bundled with the DynamoDB Enhanced Client. This provider will be used by default unless overridden in the static table schema builder or using bean annotations. -
resolveProviders
public static AttributeConverterProvider resolveProviders(List<AttributeConverterProvider> providers) Resolves a list of attribute converter providers into a single provider. If the list is a singleton, it will just return that provider, otherwise it will combine them into aChainConverterProvider
using the order provided in the list.- Parameters:
providers
- A list of providers to be combined in strict order- Returns:
- A single provider that combines all the supplied providers or null if no providers were supplied
-