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/20 09:04:24 UTC

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

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



##########
File path: docs/modules/ROOT/pages/user-guide/native-mode.adoc
##########
@@ -111,3 +111,28 @@ in {@code application.properties} - e.g.
 quarkus.index-dependency.commons-lang3.group-id = org.apache.commons
 quarkus.index-dependency.commons-lang3.artifact-id = commons-lang3
 ----
+
+[[serialization]]
+== Registration for serialization
+
+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 configure classes for serialization via the serialization configuration file

Review comment:
       We can address this in a follow up issue / PR but we shouldn't we mention `@RegisterForReflection(serialization = true)` as the preferred way of registering user classes for serialization? `-H:SerializationConfigurationResources` is kind of a low level option which should be avoided if possible.
   
   Maybe this has been discussed elsewhere already but I wonder if we should introduce a config property that lets you configure arbitrary classes for serialization like we have for reflection?




-- 
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