You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ji...@apache.org on 2023/10/18 09:02:00 UTC

[camel-quarkus] branch camel-main updated (bfe66af307 -> f91a70d923)

This is an automated email from the ASF dual-hosted git repository.

jiriondrusek pushed a change to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


 discard bfe66af307 Fixed TypeConverter creation (because off CAMEL-19998)
     new f91a70d923 Fixed TypeConverter creation (because off CAMEL-19998)

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (bfe66af307)
            \
             N -- N -- N   refs/heads/camel-main (f91a70d923)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


[camel-quarkus] 01/01: Fixed TypeConverter creation (because off CAMEL-19998)

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jiriondrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit f91a70d923e587d9efea5a39feb8c0efd06f9cb4
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Wed Oct 18 09:30:27 2023 +0200

    Fixed TypeConverter creation (because off CAMEL-19998)
---
 .../main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java
index 78eb10685b..3225f387ce 100644
--- a/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java
+++ b/extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelContextRecorder.java
@@ -27,6 +27,7 @@ import org.apache.camel.CamelContext;
 import org.apache.camel.ExtendedCamelContext;
 import org.apache.camel.RouteConfigurationsBuilder;
 import org.apache.camel.RoutesBuilder;
+import org.apache.camel.TypeConverter;
 import org.apache.camel.builder.LambdaRouteBuilder;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.builder.endpoint.EndpointRouteBuilder;
@@ -70,6 +71,9 @@ public class CamelContextRecorder {
         extendedCamelContext.addContextPlugin(RuntimeCamelCatalog.class, new CamelRuntimeCatalog(config.runtimeCatalog));
         extendedCamelContext.setRegistry(registry.getValue());
         context.setTypeConverterRegistry(typeConverterRegistry.getValue());
+        if (typeConverterRegistry.getValue() instanceof TypeConverter) {
+            context.setTypeConverter((TypeConverter) typeConverterRegistry.getValue());
+        }
         context.setLoadTypeConverters(false);
         extendedCamelContext.addContextPlugin(ModelJAXBContextFactory.class, contextFactory.getValue());
         extendedCamelContext.addContextPlugin(PackageScanClassResolver.class, packageScanClassResolver.getValue());