Class SerdeCustomPojoSerializer
java.lang.Object
io.micronaut.function.aws.JsonMapperCustomPojoSerializer
io.micronaut.aws.lambda.events.serde.SerdeCustomPojoSerializer
- All Implemented Interfaces:
com.amazonaws.services.lambda.runtime.CustomPojoSerializer
Provides an implementation of
CustomPojoSerializer
which is loaded via SPI.
This implementation avoids paying a double hit on performance when using a serialization library inside the Lambda function.
This implementations adds the package "io.micronaut.aws.lambda.events.serde" which contains SerdeImport
for the AWS Lambda Events classes to the ObjectMapper creation.- Since:
- 4.0.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from class io.micronaut.function.aws.JsonMapperCustomPojoSerializer
jsonMapper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull io.micronaut.json.JsonMapper
Methods inherited from class io.micronaut.function.aws.JsonMapperCustomPojoSerializer
fromJson, fromJson, getJsonMapper, toJson
-
Constructor Details
-
SerdeCustomPojoSerializer
public SerdeCustomPojoSerializer()
-
-
Method Details
-
createDefault
@NonNull protected @NonNull io.micronaut.json.JsonMapper createDefault()- Overrides:
createDefault
in classJsonMapperCustomPojoSerializer
- Returns:
- A JsonMapper
-