-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Events v4 serialization v2 #331
Events v4 serialization v2 #331
Conversation
...mbda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/ConfigEvent.java
Show resolved
Hide resolved
...vents/src/main/java/com/amazonaws/services/lambda/runtime/events/LambdaDestinationEvent.java
Outdated
Show resolved
Hide resolved
...ava-events/src/main/java/com/amazonaws/services/lambda/runtime/events/IamPolicyResponse.java
Outdated
Show resolved
Hide resolved
@@ -0,0 +1 @@ | |||
com.amazonaws.services.lambda.serialization.JacksonPojoSerializer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will translate when GraalVM is applied? Will it still use reflection?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From 1.0-RC8:
The native image generator now has automatic support for services loaded using ServiceLoader. All service implementation classes, listed in the META-INF directory, are available automatically as soon as the service interface is used. This eliminates the need to manually register resources and reflection support for such classes. The automatic registration can be disabled with the -H:-UseServiceLoaderFeature option.
return mapper; | ||
} | ||
|
||
public static final class VoidDeserializer extends JsonDeserializer<Void> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In order to serialize Void
as not null
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you give me an example ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still trying to understand why you need the Void
type. Is there any real-world example?
...ambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/s3/S3Event.java
Outdated
Show resolved
Hide resolved
...ambda-java-events/src/main/java/com/amazonaws/services/lambda/runtime/events/s3/S3Event.java
Show resolved
Hide resolved
I reviewed the recent changes / diffs. Built-in Java libraries, like e.g. java.time reduce the complexity and make maintenance easier. |
Data annotation with Accessors(chain = true) is more than enough in my opinion.
Here is some feedback and my thoughts on this topic 🙃 |
Issue #, if available:
#282
Description of changes:
Initial implementation of
Events V4
andSerialization V2
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.