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

Add ability to disable DefaultJacksonJaxbJsonProvider #5696

Open
marekkrk opened this issue Jul 13, 2024 · 1 comment
Open

Add ability to disable DefaultJacksonJaxbJsonProvider #5696

marekkrk opened this issue Jul 13, 2024 · 1 comment

Comments

@marekkrk
Copy link

marekkrk commented Jul 13, 2024

Currently JAXB provider is always registered unless Jackson's JAXB provider is already registered.

`
if (!config.isRegistered(JacksonJaxbJsonProvider.class)) {

        if (registerExceptionMappers) {
            // add the default Jackson exception mappers
            context.register(JsonParseExceptionMapper.class);
            context.register(JsonMappingExceptionMapper.class);
        }

        if (EntityFilteringFeature.enabled(config)) {
            context.register(JacksonFilteringFeature.class);
            context.register(FilteringJacksonJaxbJsonProvider.class, MessageBodyReader.class, MessageBodyWriter.class);
        } else {
            context.register(DefaultJacksonJaxbJsonProvider.class, MessageBodyReader.class, MessageBodyWriter.class);
        }
    }

`

This behaviour should be configurable so that DefaultJacksonJaxbJsonProvider does not need to be present in native Graal images.

@jansupol
Copy link
Contributor

Currently JAXB provider is always registered unless Jackson's JAXB provider is already registered. This behaviour should be configurable so that DefaultJacksonJaxbJsonProvider does not need to be present in native Graal images.

Do I understand correctly that you disable (javax.xml.bind) JAX-B by bringing in Jackson?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants