Camel Spring Boot

Java

Evaluates a Java (Java compiled once at runtime) expression

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-joor-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 5 options, which are listed below.

Name Description Default Type

camel.language.java.enabled

Whether to enable auto configuration of the java language. This is enabled by default.

Boolean

camel.language.java.pre-compile

Whether the expression should be pre compiled once during initialization phase. If this is turned off, then the expression is reloaded and compiled on each evaluation.

true

Boolean

camel.language.java.resolve-resource

Whether a result of the expression that is a String starting with resource: is loaded as a resource and its content becomes the result, e.g. a script that returns resource:file:order.json or resource:classpath:templates/order.json (a name without a scheme is a classpath resource). Off by default; the resource: prefix on the expression text itself is always resolved. Applies to the expression used as a value, not as a predicate.

false

Boolean

camel.language.java.single-quotes

Whether single quotes can be used as replacement for double quotes. This is convenient when you need to work with strings inside strings.

true

Boolean

camel.language.java.trim

Whether to trim the source code to remove leading and trailing whitespaces and line breaks.

true

Boolean