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 2020/11/26 08:46:13 UTC

[camel-spring-boot] 03/03: CAMEL-15704: joor and csimple-joor starters

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

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git

commit 82af255326cdd5e0cd0a0c10a83d1b8f3e4306d3
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Nov 26 09:44:38 2020 +0100

    CAMEL-15704: joor and csimple-joor starters
---
 components-starter/README.adoc                 |  8 ++++--
 docs/modules/ROOT/pages/joor-starter.adoc      | 34 ++++++++++++++++++++++++++
 docs/modules/ROOT/pages/list.adoc              |  8 ++++--
 tooling/camel-spring-boot-bom/pom.xml          | 10 ++++++++
 tooling/camel-spring-boot-dependencies/pom.xml | 10 ++++++++
 5 files changed, 66 insertions(+), 4 deletions(-)

diff --git a/components-starter/README.adoc b/components-starter/README.adoc
index f301bff..bbd919e 100644
--- a/components-starter/README.adoc
+++ b/components-starter/README.adoc
@@ -801,7 +801,7 @@ Number of Camel data formats: 46 in 38 JAR artifacts (0 deprecated)
 == Camel Languages
 
 // languages: START
-Number of Camel languages: 17 in 11 JAR artifacts (0 deprecated)
+Number of Camel languages: 18 in 12 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,3,3,3,6",options="header"]
 |===
@@ -821,6 +821,8 @@ Number of Camel languages: 17 in 11 JAR artifacts (0 deprecated)
 
 | xref:latest@components:languages:hl7terser-language.adoc[HL7 Terser] | camel-hl7-starter | Stable | 2.11 | Get the value of an HL7 message field specified by terse location specification syntax.
 
+| xref:latest@components:languages:joor-language.adoc[jOOR] | camel-joor-starter | Preview | 3.7 | Evaluate a jOOR (Java compiled once at runtime) expression language.
+
 | xref:latest@components:languages:jsonpath-language.adoc[JsonPath] | camel-jsonpath-starter | Stable | 2.13 | Evaluate a JsonPath expression against a JSON message body.
 
 | xref:latest@components:languages:mvel-language.adoc[MVEL] | camel-mvel-starter | Stable | 2.0 | Evaluate an MVEL template against the Camel Exchange.
@@ -847,7 +849,7 @@ Number of Camel languages: 17 in 11 JAR artifacts (0 deprecated)
 == Miscellaneous Extensions
 
 // others: START
-Number of miscellaneous extensions: 25 in 25 JAR artifacts (2 deprecated)
+Number of miscellaneous extensions: 26 in 26 JAR artifacts (2 deprecated)
 
 [width="100%",cols="4,3,3,3,6",options="header"]
 |===
@@ -855,6 +857,8 @@ Number of miscellaneous extensions: 25 in 25 JAR artifacts (2 deprecated)
 
 | xref:latest@components:others:aws-xray.adoc[AWS XRay] | camel-aws-xray-starter | Stable | 2.21 | Distributed tracing using AWS XRay
 
+| xref:latest@components:others:csimple-joor.adoc[CSimple jOOR] | camel-csimple-joor-starter | Preview | 3.7 | jOOR compiler for csimple language
+
 | xref:latest@components:others:cxf-transport.adoc[CXF Transport] | camel-cxf-transport-starter | Stable | 2.8 | Camel Transport for Apache CXF
 
 | xref:latest@components:others:etcd3.adoc[Etcd3] | camel-etcd3-starter | Preview | 3.5 | Aggregation repository using EtcD as datastore
diff --git a/docs/modules/ROOT/pages/joor-starter.adoc b/docs/modules/ROOT/pages/joor-starter.adoc
new file mode 100644
index 0000000..c6c0c49
--- /dev/null
+++ b/docs/modules/ROOT/pages/joor-starter.adoc
@@ -0,0 +1,34 @@
+// spring-boot-auto-configure options: START
+:page-partial:
+:doctitle: Camel Spring Boot Starter for joor
+
+== Spring Boot Auto-Configuration
+
+When using joor with Spring Boot make sure to use the following Maven dependency to have support for auto configuration:
+
+[source,xml]
+----
+<dependency>
+  <groupId>org.apache.camel.springboot</groupId>
+  <artifactId>camel-joor-starter</artifactId>
+  <version>x.x.x</version>
+  <!-- use the same version as your Camel core version -->
+</dependency>
+----
+
+
+The component supports 4 options, which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *camel.language.joor.enabled* | Whether to enable auto configuration of the joor language. This is enabled by default. |  | Boolean
+| *camel.language.joor.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.joor.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.joor.trim* | Whether to trim the value to remove leading and trailing whitespaces and line breaks | true | Boolean
+|===
+
+
+// spring-boot-auto-configure options: END
diff --git a/docs/modules/ROOT/pages/list.adoc b/docs/modules/ROOT/pages/list.adoc
index f301bff..bbd919e 100644
--- a/docs/modules/ROOT/pages/list.adoc
+++ b/docs/modules/ROOT/pages/list.adoc
@@ -801,7 +801,7 @@ Number of Camel data formats: 46 in 38 JAR artifacts (0 deprecated)
 == Camel Languages
 
 // languages: START
-Number of Camel languages: 17 in 11 JAR artifacts (0 deprecated)
+Number of Camel languages: 18 in 12 JAR artifacts (0 deprecated)
 
 [width="100%",cols="4,3,3,3,6",options="header"]
 |===
@@ -821,6 +821,8 @@ Number of Camel languages: 17 in 11 JAR artifacts (0 deprecated)
 
 | xref:latest@components:languages:hl7terser-language.adoc[HL7 Terser] | camel-hl7-starter | Stable | 2.11 | Get the value of an HL7 message field specified by terse location specification syntax.
 
+| xref:latest@components:languages:joor-language.adoc[jOOR] | camel-joor-starter | Preview | 3.7 | Evaluate a jOOR (Java compiled once at runtime) expression language.
+
 | xref:latest@components:languages:jsonpath-language.adoc[JsonPath] | camel-jsonpath-starter | Stable | 2.13 | Evaluate a JsonPath expression against a JSON message body.
 
 | xref:latest@components:languages:mvel-language.adoc[MVEL] | camel-mvel-starter | Stable | 2.0 | Evaluate an MVEL template against the Camel Exchange.
@@ -847,7 +849,7 @@ Number of Camel languages: 17 in 11 JAR artifacts (0 deprecated)
 == Miscellaneous Extensions
 
 // others: START
-Number of miscellaneous extensions: 25 in 25 JAR artifacts (2 deprecated)
+Number of miscellaneous extensions: 26 in 26 JAR artifacts (2 deprecated)
 
 [width="100%",cols="4,3,3,3,6",options="header"]
 |===
@@ -855,6 +857,8 @@ Number of miscellaneous extensions: 25 in 25 JAR artifacts (2 deprecated)
 
 | xref:latest@components:others:aws-xray.adoc[AWS XRay] | camel-aws-xray-starter | Stable | 2.21 | Distributed tracing using AWS XRay
 
+| xref:latest@components:others:csimple-joor.adoc[CSimple jOOR] | camel-csimple-joor-starter | Preview | 3.7 | jOOR compiler for csimple language
+
 | xref:latest@components:others:cxf-transport.adoc[CXF Transport] | camel-cxf-transport-starter | Stable | 2.8 | Camel Transport for Apache CXF
 
 | xref:latest@components:others:etcd3.adoc[Etcd3] | camel-etcd3-starter | Preview | 3.5 | Aggregation repository using EtcD as datastore
diff --git a/tooling/camel-spring-boot-bom/pom.xml b/tooling/camel-spring-boot-bom/pom.xml
index 62b668a..8d3aedb 100644
--- a/tooling/camel-spring-boot-bom/pom.xml
+++ b/tooling/camel-spring-boot-bom/pom.xml
@@ -473,6 +473,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel.springboot</groupId>
+        <artifactId>camel-csimple-joor-starter</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel.springboot</groupId>
         <artifactId>camel-csv-starter</artifactId>
         <version>${project.version}</version>
       </dependency>
@@ -923,6 +928,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel.springboot</groupId>
+        <artifactId>camel-joor-starter</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel.springboot</groupId>
         <artifactId>camel-jpa-starter</artifactId>
         <version>${project.version}</version>
       </dependency>
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml b/tooling/camel-spring-boot-dependencies/pom.xml
index 8d3867c..bca859f 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -678,6 +678,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel.springboot</groupId>
+        <artifactId>camel-csimple-joor-starter</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel.springboot</groupId>
         <artifactId>camel-csv-starter</artifactId>
         <version>${project.version}</version>
       </dependency>
@@ -1128,6 +1133,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel.springboot</groupId>
+        <artifactId>camel-joor-starter</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel.springboot</groupId>
         <artifactId>camel-jpa-starter</artifactId>
         <version>${project.version}</version>
       </dependency>