Interface RestBindingJaxbDataFormatFactory


public interface RestBindingJaxbDataFormatFactory
SPI that configures a JAXB DataFormat pair for XML binding in the Camel REST DSL.

When a REST-DSL route uses a binding mode that includes XML (e.g. RestConfiguration.RestBindingMode.xml or RestConfiguration.RestBindingMode.json_xml), the REST binding processor calls setupJaxb() to obtain configured DataFormat instances for the input and output types. This interface decouples the REST binding layer in camel-core from the camel-jaxb module: the factory is discovered via the service key FACTORY and is only invoked when JAXB binding is actually needed, so routes that use JSON-only binding do not require camel-jaxb on the classpath.

See Rest DSL in the Camel user manual.

Since:
3.2
See Also: