question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DynamoDbExtensionContext information lacks of the Class being read/wrote

See original GitHub issue

The 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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jonathannaguincommented, Jan 20, 2022

Closing as it’s all resolved.

0reactions
github-actions[bot]commented, Jan 20, 2022

⚠️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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

sitemap-questions-116.xml - Stack Overflow
... /questions/1343777/sql-server-2000-short-cut-for-getting-stored-proc-text ... /how-do-i-read-all-classes-from-a-java-package-in-the-classpath 2020-03-14 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found