DynamoDbExtensionContext information lacks of the Class being read/wrote
See original GitHub issueThe DynamoDbExtensionContext class does not offer any information about the object being wrote or read.
Describe the Feature
The old Parameters class has a getModelClass()
that returns the Class being serialised by the converter.
This information hasn’t been available on the new Context which means that extensions can’t introspect the class of the object being wrote or read. This is extremely useful when the logic of the operation depends on a annotation for example.
Is your Feature Request related to a problem?
Described above.
Proposed Solution
It should be simple by adding a getModelClass()
to the Context that returns a Class or alternatevly a getModelType()
that returns an EnhancedType.
I can provide a PR if it’s welcome.
Describe alternatives you’ve considered
This is a limitation on the SDK.
Additional Context
We had a converter in SDK1 that was looking at the Class for a particular annotation to decide how we write/read to DynamoDB on a project that we are trying to migrate to SDK2.
Your Environment
- AWS Java SDK version used: software.amazon.awssdk:dynamodb-enhanced:2.16.92
- JDK version used: 11
- Operating System and version: Mac OS
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Closing as it’s all resolved.
⚠️COMMENT VISIBILITY WARNING⚠️
Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.