This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch 3.20.x
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/3.20.x by this push:
new 7e8472723e Register SimpleSearchTerm for reflection
7e8472723e is described below
commit 7e8472723eba37851dbcb18741e7c0c1d2393387
Author: James Netherton <[email protected]>
AuthorDate: Mon Jul 28 08:30:22 2025 +0100
Register SimpleSearchTerm for reflection
---
.../camel/quarkus/component/mail/deployment/MailProcessor.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git
a/extensions/mail/deployment/src/main/java/org/apache/camel/quarkus/component/mail/deployment/MailProcessor.java
b/extensions/mail/deployment/src/main/java/org/apache/camel/quarkus/component/mail/deployment/MailProcessor.java
index 071c2ecbf1..384f3b4404 100644
---
a/extensions/mail/deployment/src/main/java/org/apache/camel/quarkus/component/mail/deployment/MailProcessor.java
+++
b/extensions/mail/deployment/src/main/java/org/apache/camel/quarkus/component/mail/deployment/MailProcessor.java
@@ -16,8 +16,11 @@
*/
package org.apache.camel.quarkus.component.mail.deployment;
+import io.quarkus.deployment.annotations.BuildProducer;
import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
+import org.apache.camel.component.mail.SimpleSearchTerm;
class MailProcessor {
@@ -27,4 +30,9 @@ class MailProcessor {
FeatureBuildItem feature() {
return new FeatureBuildItem(FEATURE);
}
+
+ @BuildStep
+ void registerForReflection(BuildProducer<ReflectiveClassBuildItem>
reflectiveClass) {
+
reflectiveClass.produce(ReflectiveClassBuildItem.builder(SimpleSearchTerm.class).methods().build());
+ }
}