You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2020/09/16 17:13:44 UTC

[camel-k-runtime] branch master updated (b4399bb -> 4f2af73)

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

lburgazzoli pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git.


    from b4399bb  [yaml] support for configuring beans with the yaml dsl #376
     new f0bc0ef  Generate Configurer to bind properties SourceLoader.Interceptor without the need for reflection
     new 4f2af73  examples: Add example to for camel-cron and quarkus

The 2 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:
 .../quarkus/deployment/DeploymentProcessor.java    | 14 ++----
 .../core/quarkus/deployment/DeploymentSupport.java | 52 ++++++++++++++++++++
 .../main/java/org/apache/camel/k/Constants.java    |  2 +
 .../org/apache/camel/k/support/RuntimeSupport.java |  3 +-
 camel-k-runtime-cron/pom.xml                       | 38 +++++++++++++++
 .../CronSourceLoaderInterceptorConfigurer.java     | 55 ++++++++++++++++++++++
 ...apache.camel.k.cron.CronSourceLoaderInterceptor |  2 +
 .../camel/k/cron/CronSourceLoaderInterceptor.java  |  2 +
 ...k.loader.knative.KnativeSourceLoaderInterceptor |  2 +
 .../data/application.properties                    |  5 +-
 .../data}/routes.yaml                              |  8 ++--
 .../pom.xml                                        | 16 +++++--
 .../src/main/resources/application.properties      |  0
 examples/pom.xml                                   |  1 +
 14 files changed, 179 insertions(+), 21 deletions(-)
 create mode 100644 camel-k-runtime-cron/src/generated/java/org/apache/camel/k/cron/CronSourceLoaderInterceptorConfigurer.java
 create mode 100644 camel-k-runtime-cron/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.cron.CronSourceLoaderInterceptor
 create mode 100644 camel-k-runtime-knative/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.loader.knative.KnativeSourceLoaderInterceptor
 copy examples/{camel-k-runtime-example-quarkus-java => camel-k-runtime-example-quarkus-cron}/data/application.properties (93%)
 copy {camel-k-runtime-knative/src/test/resources/sources => examples/camel-k-runtime-example-quarkus-cron/data}/routes.yaml (88%)
 copy examples/{camel-k-runtime-example-quarkus-xml => camel-k-runtime-example-quarkus-cron}/pom.xml (91%)
 copy examples/{camel-k-runtime-example-quarkus-yaml => camel-k-runtime-example-quarkus-cron}/src/main/resources/application.properties (100%)


[camel-k-runtime] 02/02: examples: Add example to for camel-cron and quarkus

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

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit 4f2af7330b261d15cf7913e60f61b6d4f33430b3
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Wed Sep 16 18:15:49 2020 +0200

    examples: Add example to for camel-cron and quarkus
---
 .../data/application.properties                    |  35 +++++
 .../data/routes.yaml                               |  23 +++
 .../camel-k-runtime-example-quarkus-cron/pom.xml   | 167 +++++++++++++++++++++
 .../src/main/resources/application.properties      |  24 +++
 examples/pom.xml                                   |   1 +
 5 files changed, 250 insertions(+)

diff --git a/examples/camel-k-runtime-example-quarkus-cron/data/application.properties b/examples/camel-k-runtime-example-quarkus-cron/data/application.properties
new file mode 100644
index 0000000..339b6c4
--- /dev/null
+++ b/examples/camel-k-runtime-example-quarkus-cron/data/application.properties
@@ -0,0 +1,35 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+#
+# Quarkus
+#
+quarkus.banner.enabled = false
+
+#
+# camel - main
+#
+camel.main.name = camel-q
+camel.main.stream-caching-enabled = true
+camel.main.stream-caching-spool-directory = ${java.io.tmpdir}/camel-q
+
+#
+# Camel K
+#
+camel.k.loader.interceptor.cron.overridable-components = timer_
+
+
diff --git a/examples/camel-k-runtime-example-quarkus-cron/data/routes.yaml b/examples/camel-k-runtime-example-quarkus-cron/data/routes.yaml
new file mode 100644
index 0000000..05ee2a1
--- /dev/null
+++ b/examples/camel-k-runtime-example-quarkus-cron/data/routes.yaml
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+- from:
+    uri: "timer:tick?period=5s&delay=5s"
+    steps:
+      - set-body:
+          simple: "cron"
+      - to:
+          uri: "log:info"
\ No newline at end of file
diff --git a/examples/camel-k-runtime-example-quarkus-cron/pom.xml b/examples/camel-k-runtime-example-quarkus-cron/pom.xml
new file mode 100644
index 0000000..0452f99
--- /dev/null
+++ b/examples/camel-k-runtime-example-quarkus-cron/pom.xml
@@ -0,0 +1,167 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <parent>
+        <groupId>org.apache.camel.k</groupId>
+        <artifactId>camel-k-runtime-examples</artifactId>
+        <version>1.5.1-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>camel-k-runtime-example-quarkus-cron</artifactId>
+
+    <properties>
+        <noDeps>true</noDeps>
+        <quarkus.camel.main.routes-discovery.enabled>false</quarkus.camel.main.routes-discovery.enabled>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.camel.quarkus</groupId>
+                <artifactId>camel-quarkus-bom</artifactId>
+                <version>${camel-quarkus-version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.camel.k</groupId>
+            <artifactId>camel-k-runtime-quarkus</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.k</groupId>
+            <artifactId>camel-k-quarkus-cron</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.k</groupId>
+            <artifactId>camel-k-quarkus-loader-yaml</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-platform-http</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-log</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-timer</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-bootstrap-maven-plugin</artifactId>
+                <version>${quarkus-version}</version>
+            </plugin>
+            <plugin>
+                <groupId>io.quarkus</groupId>
+                <artifactId>quarkus-maven-plugin</artifactId>
+                <version>${quarkus-version}</version>
+                <executions>
+                    <execution>
+                        <id>build</id>
+                        <goals>
+                            <goal>build</goal>
+                        </goals>
+                        <configuration>
+                            <finalName>${project.artifactId}</finalName>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <version>${exec-maven-plugin-version}</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>exec</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <executable>java</executable>
+                    <workingDirectory>${project.basedir}</workingDirectory>
+                    <arguments>
+                        <argument>-jar</argument>
+                        <argument>${project.build.directory}/${project.artifactId}-runner.jar</argument>
+                    </arguments>
+                    <environmentVariables>
+                        <CAMEL_K_CONF>${project.basedir}/data/application.properties</CAMEL_K_CONF>
+                        <CAMEL_K_ROUTES>file:${project.basedir}/data/routes.yaml?interceptors=cron</CAMEL_K_ROUTES>
+                    </environmentVariables>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>native</id>
+            <activation>
+                <activeByDefault>false</activeByDefault>
+                <property>
+                    <name>native</name>
+                </property>
+            </activation>
+            <properties>
+                <quarkus.package.output-name>${project.artifactId}</quarkus.package.output-name>
+                <quarkus.package.type>native</quarkus.package.type>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <version>${exec-maven-plugin-version}</version>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>exec</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                        <configuration>
+                            <executable>${project.build.directory}/${project.artifactId}-runner</executable>
+                            <arguments combine.self="override" />
+                            <workingDirectory>${project.basedir}</workingDirectory>
+                            <environmentVariables>
+                                <CAMEL_K_CONF>${project.basedir}/data/application.properties</CAMEL_K_CONF>
+                                <CAMEL_K_ROUTES>file:${project.basedir}/data/routes.yaml?interceptors=cron</CAMEL_K_ROUTES>
+                            </environmentVariables>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+</project>
diff --git a/examples/camel-k-runtime-example-quarkus-cron/src/main/resources/application.properties b/examples/camel-k-runtime-example-quarkus-cron/src/main/resources/application.properties
new file mode 100644
index 0000000..88c3528
--- /dev/null
+++ b/examples/camel-k-runtime-example-quarkus-cron/src/main/resources/application.properties
@@ -0,0 +1,24 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+#
+# quarkus - log
+#
+quarkus.log.file.enable = false
+quarkus.log.console.enable = true
+
+quarkus.log.level = INFO
+quarkus.log.category."org.apache.camel".level = INFO
diff --git a/examples/pom.xml b/examples/pom.xml
index 960d8f8..1db5948 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -47,6 +47,7 @@
         <module>camel-k-runtime-example-quarkus-groovy</module>
         <module>camel-k-runtime-example-quarkus-java</module>
         <module>camel-k-runtime-example-quarkus-xml</module>
+        <module>camel-k-runtime-example-quarkus-cron</module>
     </modules>
 
     <build>


[camel-k-runtime] 01/02: Generate Configurer to bind properties SourceLoader.Interceptor without the need for reflection

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

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k-runtime.git

commit f0bc0ef13c0cdccfabfbc20526d9d93f6965ec03
Author: Luca Burgazzoli <lb...@gmail.com>
AuthorDate: Wed Sep 16 18:15:25 2020 +0200

    Generate Configurer to bind properties SourceLoader.Interceptor without the need for reflection
---
 .../quarkus/deployment/DeploymentProcessor.java    | 14 ++----
 .../core/quarkus/deployment/DeploymentSupport.java | 52 ++++++++++++++++++++
 .../main/java/org/apache/camel/k/Constants.java    |  2 +
 .../org/apache/camel/k/support/RuntimeSupport.java |  3 +-
 camel-k-runtime-cron/pom.xml                       | 38 +++++++++++++++
 .../CronSourceLoaderInterceptorConfigurer.java     | 55 ++++++++++++++++++++++
 ...apache.camel.k.cron.CronSourceLoaderInterceptor |  2 +
 .../camel/k/cron/CronSourceLoaderInterceptor.java  |  2 +
 ...k.loader.knative.KnativeSourceLoaderInterceptor |  2 +
 9 files changed, 159 insertions(+), 11 deletions(-)

diff --git a/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentProcessor.java b/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentProcessor.java
index 8091756..d34c875 100644
--- a/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentProcessor.java
+++ b/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentProcessor.java
@@ -29,6 +29,7 @@ import io.quarkus.deployment.builditem.nativeimage.ServiceProviderBuildItem;
 import org.apache.camel.k.Constants;
 import org.apache.camel.k.ContextCustomizer;
 import org.apache.camel.k.SourceDefinition;
+import org.apache.camel.k.SourceLoader;
 import org.apache.camel.k.core.quarkus.RuntimeRecorder;
 import org.apache.camel.quarkus.core.deployment.spi.CamelContextCustomizerBuildItem;
 import org.apache.camel.quarkus.core.deployment.spi.CamelServiceDestination;
@@ -54,21 +55,14 @@ public class DeploymentProcessor {
                 true,
                 Constants.SOURCE_LOADER_INTERCEPTOR_RESOURCE_PATH + "/*")
         );
-
     }
 
     @BuildStep
     List<ReflectiveClassBuildItem> registerClasses(CombinedIndexBuildItem index) {
         return List.of(
-           new ReflectiveClassBuildItem(
-               true,
-               false,
-               SourceDefinition.class),
-           new ReflectiveClassBuildItem(
-               true,
-               false,
-               getAllKnownImplementors(index.getIndex(), ContextCustomizer.class, ci -> ci.name().toString())
-                   .toArray(String[]::new))
+            reflectiveClassBuildItem(SourceDefinition.class),
+            reflectiveClassBuildItem(getAllKnownImplementors(index.getIndex(), ContextCustomizer.class)),
+            reflectiveClassBuildItem(getAllKnownImplementors(index.getIndex(), SourceLoader.Interceptor.class))
        );
     }
 
diff --git a/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentSupport.java b/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentSupport.java
index 768fd26..a3170e9 100644
--- a/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentSupport.java
+++ b/camel-k-quarkus/camel-k-quarkus-core/deployment/src/main/java/org/apache/camel/k/core/quarkus/deployment/DeploymentSupport.java
@@ -16,6 +16,7 @@
  */
 package org.apache.camel.k.core.quarkus.deployment;
 
+import java.util.Collection;
 import java.util.function.Function;
 import java.util.stream.Collectors;
 import java.util.stream.Stream;
@@ -104,6 +105,13 @@ public final class DeploymentSupport {
         return stream(getAnnotated(view, type)).map(mapper).collect(Collectors.toList());
     }
 
+    public static ReflectiveClassBuildItem reflectiveClassBuildItem(Class<?>... classes) {
+        return new ReflectiveClassBuildItem(true, false, classes);
+    }
+
+    public static ReflectiveClassBuildItem reflectiveClassBuildItem(boolean methods, boolean fields, Class<?>... classes) {
+        return new ReflectiveClassBuildItem(methods, fields, classes);
+    }
 
     public static ReflectiveClassBuildItem reflectiveClassBuildItem(ClassInfo... classInfos) {
         return classInfos.length == 1
@@ -121,6 +129,28 @@ public final class DeploymentSupport {
         );
     }
 
+    public static ReflectiveClassBuildItem reflectiveClassBuildItem(Collection<ClassInfo> classInfos) {
+        return new ReflectiveClassBuildItem(
+            true,
+            false,
+            classInfos.stream()
+                .map(ClassInfo::name)
+                .map(DotName::toString)
+                .toArray(String[]::new)
+        );
+    }
+
+    public static ReflectiveClassBuildItem reflectiveClassBuildItem(Iterable<ClassInfo> classInfos) {
+        return new ReflectiveClassBuildItem(
+            true,
+            false,
+            stream(classInfos)
+                .map(ClassInfo::name)
+                .map(DotName::toString)
+                .toArray(String[]::new)
+        );
+    }
+
     public static ReflectiveClassBuildItem reflectiveClassBuildItem(boolean methods, boolean fields, ClassInfo... classInfos) {
         return new ReflectiveClassBuildItem(
             methods,
@@ -132,6 +162,28 @@ public final class DeploymentSupport {
         );
     }
 
+    public static ReflectiveClassBuildItem reflectiveClassBuildItem(boolean methods, boolean fields, Collection<ClassInfo> classInfos) {
+        return new ReflectiveClassBuildItem(
+            methods,
+            fields,
+            classInfos.stream()
+                .map(ClassInfo::name)
+                .map(DotName::toString)
+                .toArray(String[]::new)
+        );
+    }
+
+    public static ReflectiveClassBuildItem reflectiveClassBuildItem(boolean methods, boolean fields, Iterable<ClassInfo> classInfos) {
+        return new ReflectiveClassBuildItem(
+            methods,
+            fields,
+            stream(classInfos)
+                .map(ClassInfo::name)
+                .map(DotName::toString)
+                .toArray(String[]::new)
+        );
+    }
+
     public static <T> Stream<T> stream(Iterable<T> iterable) {
         return StreamSupport.stream(iterable.spliterator(), false);
     }
diff --git a/camel-k-runtime-core/src/main/java/org/apache/camel/k/Constants.java b/camel-k-runtime-core/src/main/java/org/apache/camel/k/Constants.java
index ed848fd..83df4f7 100644
--- a/camel-k-runtime-core/src/main/java/org/apache/camel/k/Constants.java
+++ b/camel-k-runtime-core/src/main/java/org/apache/camel/k/Constants.java
@@ -56,6 +56,8 @@ public final class Constants {
 
     public static final String CUSTOMIZER_PREFIX = "camel.k.customizer.";
     public static final String CUSTOMIZER_PREFIX_FALLBACK = "customizer.";
+    public static final String LOADER_INTERCEPTOR_PREFIX = "camel.k.loader.interceptor.";
+    public static final String LOADER_INTERCEPTOR_PREFIX_FALLBACK = "loader.interceptor.";
 
 
     private Constants() {
diff --git a/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java b/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
index 411a32e..4c9da08 100644
--- a/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
+++ b/camel-k-runtime-core/src/main/java/org/apache/camel/k/support/RuntimeSupport.java
@@ -240,7 +240,8 @@ public final class RuntimeSupport {
                     LOGGER.debug("Found source loader interceptor {} from registry", id);
                 }
 
-                PropertiesSupport.bindProperties(context, interceptor, "loader.interceptor." + id + ".");
+                PropertiesSupport.bindProperties(context, interceptor, Constants.LOADER_INTERCEPTOR_PREFIX + id + ".");
+                PropertiesSupport.bindProperties(context, interceptor, Constants.LOADER_INTERCEPTOR_PREFIX_FALLBACK + id + ".");
 
                 answer.add(interceptor);
             } catch (Exception e) {
diff --git a/camel-k-runtime-cron/pom.xml b/camel-k-runtime-cron/pom.xml
index f005895..743e269 100644
--- a/camel-k-runtime-cron/pom.xml
+++ b/camel-k-runtime-cron/pom.xml
@@ -108,6 +108,44 @@
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.camel</groupId>
+                <artifactId>camel-package-maven-plugin</artifactId>
+                <version>${camel-version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-configurer</id>
+                        <phase>process-classes</phase>
+                        <goals>
+                            <goal>generate-configurer</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <version>${build-helper-maven-plugin-version}</version>
+                <executions>
+                    <execution>
+                        <phase>generate-sources</phase>
+                        <goals>
+                            <goal>add-source</goal>
+                            <goal>add-resource</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>src/generated/java</source>
+                            </sources>
+                            <resources>
+                                <resource>
+                                    <directory>src/generated/resources</directory>
+                                </resource>
+                            </resources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>
 
diff --git a/camel-k-runtime-cron/src/generated/java/org/apache/camel/k/cron/CronSourceLoaderInterceptorConfigurer.java b/camel-k-runtime-cron/src/generated/java/org/apache/camel/k/cron/CronSourceLoaderInterceptorConfigurer.java
new file mode 100644
index 0000000..bbb5edb
--- /dev/null
+++ b/camel-k-runtime-cron/src/generated/java/org/apache/camel/k/cron/CronSourceLoaderInterceptorConfigurer.java
@@ -0,0 +1,55 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.k.cron;
+
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.k.cron.CronSourceLoaderInterceptor;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@SuppressWarnings("unchecked")
+public class CronSourceLoaderInterceptorConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        org.apache.camel.k.cron.CronSourceLoaderInterceptor target = (org.apache.camel.k.cron.CronSourceLoaderInterceptor) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "overridablecomponents":
+        case "OverridableComponents": target.setOverridableComponents(property(camelContext, java.lang.String.class, value)); return true;
+        case "runtime":
+        case "Runtime": target.setRuntime(property(camelContext, org.apache.camel.k.Runtime.class, value)); return true;
+        case "timeruri":
+        case "TimerUri": target.setTimerUri(property(camelContext, java.lang.String.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public Map<String, Object> getAllOptions(Object target) {
+        Map<String, Object> answer = new CaseInsensitiveMap();
+        answer.put("OverridableComponents", java.lang.String.class);
+        answer.put("Runtime", org.apache.camel.k.Runtime.class);
+        answer.put("TimerUri", java.lang.String.class);
+        return answer;
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        org.apache.camel.k.cron.CronSourceLoaderInterceptor target = (org.apache.camel.k.cron.CronSourceLoaderInterceptor) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "overridablecomponents":
+        case "OverridableComponents": return target.getOverridableComponents();
+        case "runtime":
+        case "Runtime": return target.getRuntime();
+        case "timeruri":
+        case "TimerUri": return target.getTimerUri();
+        default: return null;
+        }
+    }
+}
+
diff --git a/camel-k-runtime-cron/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.cron.CronSourceLoaderInterceptor b/camel-k-runtime-cron/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.cron.CronSourceLoaderInterceptor
new file mode 100644
index 0000000..5f58309
--- /dev/null
+++ b/camel-k-runtime-cron/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.cron.CronSourceLoaderInterceptor
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.k.cron.CronSourceLoaderInterceptorConfigurer
diff --git a/camel-k-runtime-cron/src/main/java/org/apache/camel/k/cron/CronSourceLoaderInterceptor.java b/camel-k-runtime-cron/src/main/java/org/apache/camel/k/cron/CronSourceLoaderInterceptor.java
index 2eb29d4..d3026d1 100644
--- a/camel-k-runtime-cron/src/main/java/org/apache/camel/k/cron/CronSourceLoaderInterceptor.java
+++ b/camel-k-runtime-cron/src/main/java/org/apache/camel/k/cron/CronSourceLoaderInterceptor.java
@@ -28,11 +28,13 @@ import org.apache.camel.k.annotation.LoaderInterceptor;
 import org.apache.camel.k.support.RuntimeSupport;
 import org.apache.camel.model.RouteDefinition;
 import org.apache.camel.spi.CamelEvent;
+import org.apache.camel.spi.Configurer;
 import org.apache.camel.support.EventNotifierSupport;
 import org.apache.camel.util.ObjectHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@Configurer
 @LoaderInterceptor("cron")
 public class CronSourceLoaderInterceptor implements SourceLoader.Interceptor, RuntimeAware {
 
diff --git a/camel-k-runtime-knative/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.loader.knative.KnativeSourceLoaderInterceptor b/camel-k-runtime-knative/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.loader.knative.KnativeSourceLoaderInterceptor
new file mode 100644
index 0000000..50833dc
--- /dev/null
+++ b/camel-k-runtime-knative/src/generated/resources/META-INF/services/org/apache/camel/configurer/org.apache.camel.k.loader.knative.KnativeSourceLoaderInterceptor
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.k.loader.knative.KnativeSourceLoaderInterceptorConfigurer