Skip to content
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

Turn PayloadMapper and MessageMapper into interfaces #198

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

adutra
Copy link
Contributor

@adutra adutra commented Oct 2, 2024

This change turns PayloadMapper and MessageMapper into interfaces, and introduces default implementations annotated with @DefaultBean.

This allows users to optionally override the logic to serialize and deserialize payloads by providing an alternate CDI bean. This can be useful e.g. to inject a different ObjectMapper, or to use views when serializing and deserializing. It also allows users to use @Decorator beans if desired.

This change turns `PayloadMapper` and `MessageMapper` into interfaces,
and introduces default implementations annotated with `@DefaultBean`.

This allows users to optionally override the logic to serialize and
deserialize payloads by providing an alternate CDI bean. This can
be useful e.g. to inject a different `ObjectMapper`, or to use views
when serializing and deserializing. It also allows users to use
`@Decorator` beans if desired.
@adutra adutra requested a review from a team as a code owner October 2, 2024 18:03
@kjeldpaw kjeldpaw self-assigned this Oct 7, 2024
Copy link
Contributor

@kjeldpaw kjeldpaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine :)

@kjeldpaw kjeldpaw merged commit 89107fa into quarkiverse:main Oct 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants