Class ExtensionResolver
- java.lang.Object
-
- software.amazon.awssdk.enhanced.dynamodb.internal.client.ExtensionResolver
-
public final class ExtensionResolver extends Object
Static module to assist with the initialization of an extension for a DynamoDB Enhanced Client based on supplied configuration.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<DynamoDbEnhancedClientExtension>
defaultExtensions()
Static provider for the default extensions that are bundled with the DynamoDB Enhanced Client.static DynamoDbEnhancedClientExtension
resolveExtensions(List<DynamoDbEnhancedClientExtension> extensions)
Resolves a list of extensions into a single extension.
-
-
-
Method Detail
-
defaultExtensions
public static List<DynamoDbEnhancedClientExtension> defaultExtensions()
Static provider for the default extensions that are bundled with the DynamoDB Enhanced Client. Currently this is just theVersionedRecordExtension
. These extensions will be used by default unless overridden in the enhanced client builder.
-
resolveExtensions
public static DynamoDbEnhancedClientExtension resolveExtensions(List<DynamoDbEnhancedClientExtension> extensions)
Resolves a list of extensions into a single extension. If the list is a singleton, will just return that extension otherwise it will combine them with theChainExtension
meta-extension using the order provided in the list.- Parameters:
extensions
- A list of extensions to be combined in strict order- Returns:
- A single extension that combines all the supplied extensions or null if no extensions were provided
-
-