| // Do not edit directly! |
| // This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page |
| [id="extensions-jaxb"] |
| = JAXB |
| :page-aliases: extensions/jaxb.adoc |
| :linkattrs: |
| :cq-artifact-id: camel-quarkus-jaxb |
| :cq-native-supported: true |
| :cq-status: Stable |
| :cq-status-deprecation: Stable |
| :cq-description: Unmarshal XML payloads to POJOs and back using JAXB2 XML marshalling standard. |
| :cq-deprecated: false |
| :cq-jvm-since: 1.0.0 |
| :cq-native-since: 1.0.0 |
| |
| ifeval::[{doc-show-badges} == true] |
| [.badges] |
| [.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0## |
| endif::[] |
| |
| Unmarshal XML payloads to POJOs and back using JAXB2 XML marshalling standard. |
| |
| [id="extensions-jaxb-whats-inside"] |
| == What's inside |
| |
| * xref:{cq-camel-components}:dataformats:jaxb-dataformat.adoc[JAXB data format] |
| |
| Please refer to the above link for usage and configuration details. |
| |
| [id="extensions-jaxb-maven-coordinates"] |
| == Maven coordinates |
| |
| https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-jaxb[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"] |
| |
| Or add the coordinates to your existing project: |
| |
| [source,xml] |
| ---- |
| <dependency> |
| <groupId>org.apache.camel.quarkus</groupId> |
| <artifactId>camel-quarkus-jaxb</artifactId> |
| </dependency> |
| ---- |
| ifeval::[{doc-show-user-guide-link} == true] |
| Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications. |
| endif::[] |
| |
| [id="extensions-jaxb-usage"] |
| == Usage |
| [id="extensions-jaxb-usage-native-mode-objectfactory-instantiation-of-non-jaxb-annotated-classes"] |
| === Native mode `ObjectFactory` instantiation of non-JAXB annotated classes |
| |
| When performing JAXB marshal operations with a custom `ObjectFactory` to instantiate POJO classes that do not have JAXB annotations, |
| you must register those POJO classes for reflection in order for them to be instantiated in native mode. E.g via the `@RegisterForReflection` |
| annotation or configuration property `quarkus.camel.native.reflection.include-patterns`. |
| |
| Refer to the xref:user-guide/native-mode.adoc#reflection[Native mode] user guide for more information. |
| |