You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/07/19 13:05:14 UTC

[GitHub] [camel-quarkus] JiriOndrusek commented on a change in pull request #2904: Use of serialization feature of Quakus (includes Sql and Nitrite)

JiriOndrusek commented on a change in pull request #2904:
URL: https://github.com/apache/camel-quarkus/pull/2904#discussion_r672278583



##########
File path: docs/modules/ROOT/pages/reference/extensions/core.adoc
##########
@@ -104,6 +104,27 @@ camel.beans.customBeanWithSetterInjection.counter = 123
 
 As such, the class `PropertiesCustomBeanWithSetterInjection` needs to be link:https://quarkus.io/guides/writing-native-applications-tips#registering-for-reflection[registered for reflection], note that field access could be omitted in this case.
 
+==== Serialization in native mode
+
+If serialization support is requested via `quarkus.camel.native.reflection.serialization-enabled`, following classes are registered for serialization:
+
+* `java.lang.Boolean`
+* `java.lang.Byte`
+* `java.lang.Character`
+* `java.lang.Float`
+* `java.lang.Double`
+* `java.lang.Integer`
+* `java.lang.Long`
+* `java.lang.Number`
+* `java.lang.String`
+* `java.math.BigInteger`
+* `java.util.Date`
+* `java.util.HashMap`
+* `java.util.LinkedHashMap`
+* `org.apache.camel.support.DefaultExchangeHolder`
+
+Developers can register other classes for serialization via the `ReflectiveClassBuildItem`.

Review comment:
       yes, you are right . Native-mode.adoc seems to be better place to write about it and I'll try to omit the buildItem and add link to the native registration via properties. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org