blob: 75eca7ed994f9d58885811bb12d0ac32bfe3bcf6 [file] [log] [blame]
// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
= 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
[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.0.0## [.badge-key]##Native since##[.badge-supported]##1.0.0##
Unmarshal XML payloads to POJOs and back using JAXB2 XML marshalling standard.
== 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.
== Maven coordinates
https://code.quarkus.io/?extension-search=camel-quarkus-jaxb[Create a new project with this extension on code.quarkus.io, 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>
----
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
== Usage
=== 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.