You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/04/27 17:45:40 UTC

[camel] branch main updated: CAMEL-18081: camel-main/camel-java-dsl - Add option to compile to disk to pre-load on next run

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 333b0a23103 CAMEL-18081: camel-main/camel-java-dsl - Add option to compile to disk to pre-load on next run
333b0a23103 is described below

commit 333b0a23103b7cc8403823b633a27ed37cada2f1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Apr 27 19:45:30 2022 +0200

    CAMEL-18081: camel-main/camel-java-dsl - Add option to compile to disk to pre-load on next run
---
 .../apache/camel/spi/ExtendedRoutesBuilderLoader.java    |  8 ++++----
 .../java/org/apache/camel/spi/RoutesBuilderLoader.java   |  2 --
 .../main/java/org/apache/camel/main/BaseMainSupport.java |  1 -
 .../apache/camel/main/MainConfigurationProperties.java   | 16 ++++++++--------
 4 files changed, 12 insertions(+), 15 deletions(-)

diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/ExtendedRoutesBuilderLoader.java b/core/camel-api/src/main/java/org/apache/camel/spi/ExtendedRoutesBuilderLoader.java
index c4bc841e05f..5e3551eb2b4 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/ExtendedRoutesBuilderLoader.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/ExtendedRoutesBuilderLoader.java
@@ -47,11 +47,11 @@ public interface ExtendedRoutesBuilderLoader extends RoutesBuilderLoader {
     boolean isCompileLoadFirst();
 
     /**
-     * Whether to load preexisting compiled Camel routes class files, when using camel-java-joor-dsl as Java
-     * DSL (such as when using Camel K with Java source routes).
+     * Whether to load preexisting compiled Camel routes class files, when using camel-java-joor-dsl as Java DSL (such
+     * as when using Camel K with Java source routes).
      *
-     * If enabled then Camel will look in the routes compile directory if a compiled Java route already
-     * exists and load its bytecode instead of runtime compiling from its java source file.
+     * If enabled then Camel will look in the routes compile directory if a compiled Java route already exists and load
+     * its bytecode instead of runtime compiling from its java source file.
      */
     void setCompileLoadFirst(boolean compileLoadFirst);
 
diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/RoutesBuilderLoader.java b/core/camel-api/src/main/java/org/apache/camel/spi/RoutesBuilderLoader.java
index 379ab0ced16..1d702e22d33 100644
--- a/core/camel-api/src/main/java/org/apache/camel/spi/RoutesBuilderLoader.java
+++ b/core/camel-api/src/main/java/org/apache/camel/spi/RoutesBuilderLoader.java
@@ -20,8 +20,6 @@ import org.apache.camel.CamelContextAware;
 import org.apache.camel.RoutesBuilder;
 import org.apache.camel.StaticService;
 
-import java.util.Map;
-
 /**
  * SPI for loading {@link RoutesBuilder} from a {@link Resource}.
  */
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
index da019aafdf5..66faf23b413 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/BaseMainSupport.java
@@ -409,7 +409,6 @@ public abstract class BaseMainSupport extends BaseService {
                         return null;
                     });
 
-
             // eager load properties from modeline by scanning DSL sources and gather properties for auto configuration
             if (camelContext.isModeline() || mainConfigurationProperties.isModeline()) {
                 modelineRoutes(camelContext);
diff --git a/core/camel-main/src/main/java/org/apache/camel/main/MainConfigurationProperties.java b/core/camel-main/src/main/java/org/apache/camel/main/MainConfigurationProperties.java
index f6061490519..1a4295951f6 100644
--- a/core/camel-main/src/main/java/org/apache/camel/main/MainConfigurationProperties.java
+++ b/core/camel-main/src/main/java/org/apache/camel/main/MainConfigurationProperties.java
@@ -374,11 +374,11 @@ public class MainConfigurationProperties extends DefaultConfigurationProperties<
     }
 
     /**
-     * Whether to load preexisting compiled Camel routes class files, when using camel-java-joor-dsl as Java
-     * DSL (such as when using Camel K with Java source routes).
+     * Whether to load preexisting compiled Camel routes class files, when using camel-java-joor-dsl as Java DSL (such
+     * as when using Camel K with Java source routes).
      *
-     * If enabled then Camel will look in the routes compile directory if a compiled Java route already
-     * exists and load its bytecode instead of runtime compiling from its java source file.
+     * If enabled then Camel will look in the routes compile directory if a compiled Java route already exists and load
+     * its bytecode instead of runtime compiling from its java source file.
      */
     public void setRoutesCompileLoadFirst(boolean routesCompileLoadFirst) {
         this.routesCompileLoadFirst = routesCompileLoadFirst;
@@ -630,11 +630,11 @@ public class MainConfigurationProperties extends DefaultConfigurationProperties<
     }
 
     /**
-     * Whether to load preexisting compiled Camel routes class files, when using camel-java-joor-dsl as Java
-     * DSL (such as when using Camel K with Java source routes).
+     * Whether to load preexisting compiled Camel routes class files, when using camel-java-joor-dsl as Java DSL (such
+     * as when using Camel K with Java source routes).
      *
-     * If enabled then Camel will look in the routes compile directory if a compiled Java route already
-     * exists and load its bytecode instead of runtime compiling from its java source file.
+     * If enabled then Camel will look in the routes compile directory if a compiled Java route already exists and load
+     * its bytecode instead of runtime compiling from its java source file.
      */
     public MainConfigurationProperties withRoutesCompileLoadFirst(boolean routesCompileLoadFirst) {
         this.routesCompileLoadFirst = routesCompileLoadFirst;