You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/07/03 15:27:00 UTC

[jira] [Created] (CAMEL-22214) camel-groovy - Allow to pre-load groovy source files for shared functions and DTOs

Claus Ibsen created CAMEL-22214:
-----------------------------------

             Summary: camel-groovy - Allow to pre-load groovy source files for shared functions and DTOs
                 Key: CAMEL-22214
                 URL: https://issues.apache.org/jira/browse/CAMEL-22214
             Project: Camel
          Issue Type: New Feature
          Components: camel-groovy
            Reporter: Claus Ibsen
             Fix For: 4.x


We can call groovy from the DSL as an expression language.

But you may want to have small functions and DTO classes and whatnot as part of reusable in the classpath. 

So we should look at have some kind of camel.language.groovy.preload=foo.groovy,shared/*.groovy

where you can use file globs to refer which files should be loaded and compiled on startup and added to the classpath.

This is valuable for low-code and camel-jbang style of work.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)