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

#759: Added service loader pattern for serialization frameworks #760

Merged
merged 6 commits into from
Jul 1, 2022

Conversation

brynrhodes
Copy link
Member

This PR introduces ModelInfoReader and ElmLibraryReader/Writer interfaces in the cql-to-elm package and a service loader pattern to support using different serialization frameworks based on which packages are included.

model-jackson: ModelInfoReader implementations using Jackson
model-jaxb: ModelInfoReader implementations using JAXB
elm-jackson: ElmLibraryReader/Writer implementations using Jackson
elm-jaxb: ElmLibraryReader/Writer implementations using JAXB

In addition, this PR refactors the CLI into a new cql-to-elm-cli package that has the command-line translator only.

@vitorpamplona
Copy link
Contributor

vitorpamplona commented Jun 18, 2022

I really like the idea of XML and JSON Elm Library readers/writers not even being a part of cql-to-elm. Maybe they shouldn't even be a thing in the long run, given the many problems we are having with export/import with both Jackson and JAXB.

@vitorpamplona
Copy link
Contributor

This is good to go in my tests.

@JPercival JPercival merged commit c49f68a into master Jul 1, 2022
@brynrhodes brynrhodes deleted the feature-759-refactor-serialization-frameworks branch January 4, 2023 15:41
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.

None yet

3 participants