Interface JaxbContextCustomizer

All Superinterfaces:
Comparable<JaxbContextCustomizer>

public interface JaxbContextCustomizer extends Comparable<JaxbContextCustomizer>
Meant to be implemented by a CDI bean that provides arbitrary customization for the default JAXBContext.

All implementations (that are registered as CDI beans) are taken into account when producing the default JAXBContext.

See also JaxbContextProducer.jaxbContext(jakarta.enterprise.inject.Instance<io.quarkus.jaxb.runtime.JaxbContextCustomizer>).

  • Field Details

  • Method Details

    • customizeContextProperties

      default void customizeContextProperties(Map<String,Object> properties)
    • customizeMarshaller

      default void customizeMarshaller(jakarta.xml.bind.Marshaller marshaller) throws jakarta.xml.bind.PropertyException
      Throws:
      jakarta.xml.bind.PropertyException
    • customizeUnmarshaller

      default void customizeUnmarshaller(jakarta.xml.bind.Unmarshaller unmarshaller) throws jakarta.xml.bind.PropertyException
      Throws:
      jakarta.xml.bind.PropertyException
    • priority

      default int priority()
      Defines the priority that the customizers are applied. A lower integer value means that the customizer will be applied after a customizer with a higher priority
    • compareTo

      default int compareTo(JaxbContextCustomizer o)
      Specified by:
      compareTo in interface Comparable<JaxbContextCustomizer>