// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-dozer"]
= Dozer
:page-aliases: extensions/dozer.adoc
:linkattrs:
:cq-artifact-id: camel-quarkus-dozer
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable Deprecated
:cq-description: Map between Java beans using the Dozer mapping library.
:cq-deprecated: true
: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## [.badge-key]##⚠️##[.badge-unsupported]##Deprecated##
endif::[]

Map between Java beans using the Dozer mapping library.

[id="extensions-dozer-whats-inside"]
== What's inside

* xref:{cq-camel-components}::dozer-component.adoc[Dozer component], URI syntax: `dozer:name`

Please refer to the above link for usage and configuration details.

[id="extensions-dozer-maven-coordinates"]
== Maven coordinates

https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-dozer[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-dozer</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-dozer-additional-camel-quarkus-configuration"]
== Additional Camel Quarkus configuration

The Dozer extension can automatically register a `DozerBeanMapperConfiguration` bean with the Camel registry which references your mapping files.

Use the following configuration property to specify the location(s) of your Dozer mapping configuration files.

[source,properties]
----
quarkus.camel.dozer.mapping-files = dozerMappings.xml,file:foo/bar/custom-mappings.xml,http://foo/bar/mapping.xml
----

The Dozer extension provides a type converter which can leverage your mapping configuration(s) to convert and map a message body
from one type to another. For example.

[source,java]
----
from("direct:oldCustomerTypeIn").convertBodyTo(NewCustomerType.class);
----

It is disabled by default but can be enabled with the following configuration property.

[source,properties]
----
quarkus.camel.dozer.type-converter-enabled = true
----


[width="100%",cols="80,5,15",options="header"]
|===
| Configuration property | Type | Default


|icon:lock[title=Fixed at build time] [[quarkus.camel.dozer.mapping-files]]`link:#quarkus.camel.dozer.mapping-files[quarkus.camel.dozer.mapping-files]`

A comma separated list of Dozer XML mapping configuration file URIs.
| `string`
| 
|===

[.configuration-legend]
{doc-link-icon-lock}[title=Fixed at build time] Configuration property fixed at build time. All other configuration properties are overridable at runtime.

