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 2023/10/01 07:15:03 UTC

[camel-spring-boot] branch main updated: Regen

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-spring-boot.git


The following commit(s) were added to refs/heads/main by this push:
     new 8c3d54a90b3 Regen
8c3d54a90b3 is described below

commit 8c3d54a90b342dbe3bd20dcda3f358d1f0f19058
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Oct 1 09:14:52 2023 +0200

    Regen
---
 .../org/apache/camel/springboot/catalog/languages/bean.json  |  7 ++++---
 .../camel-bean-starter/src/main/docs/bean.json               |  7 +++++++
 .../language/bean/springboot/BeanLanguageConfiguration.java  | 12 ++++++++++++
 tooling/camel-spring-boot-dependencies/pom.xml               |  2 +-
 4 files changed, 24 insertions(+), 4 deletions(-)

diff --git a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/bean.json b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/bean.json
index a1e12463931..2d0fb4129c8 100644
--- a/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/bean.json
+++ b/catalog/camel-catalog-provider-springboot/src/main/resources/org/apache/camel/springboot/catalog/languages/bean.json
@@ -20,8 +20,9 @@
     "method": { "index": 1, "kind": "attribute", "displayName": "Method", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Name of method to call" },
     "beanType": { "index": 2, "kind": "attribute", "displayName": "Bean Type", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Class name (fully qualified) of the bean to use Will lookup in registry and if there is a single instance of the same type, then the existing bean is used, otherwise a new bean is created (requires a default no-arg constructor)." },
     "scope": { "index": 3, "kind": "attribute", "displayName": "Scope", "label": "advanced", "required": false, "type": "enum", "javaType": "java.lang.String", "enum": [ "Singleton", "Request", "Prototype" ], "deprecated": false, "autowired": false, "secret": false, "defaultValue": "Singleton", "description": "Scope of bean. When using singleton scope (default) the bean is created or looked up only once and reused for the lifetime of the endpoint. The bean should be thread-safe in case c [...]
-    "resultType": { "index": 4, "kind": "attribute", "displayName": "Result Type", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the class of the result type (type from output)" },
-    "trim": { "index": 5, "kind": "attribute", "displayName": "Trim", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to trim the value to remove leading and trailing whitespaces and line breaks" },
-    "id": { "index": 6, "kind": "attribute", "displayName": "Id", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the id of this node" }
+    "validate": { "index": 4, "kind": "attribute", "displayName": "Validate", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to validate the bean has the configured method." },
+    "resultType": { "index": 5, "kind": "attribute", "displayName": "Result Type", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the class of the result type (type from output)" },
+    "trim": { "index": 6, "kind": "attribute", "displayName": "Trim", "label": "advanced", "required": false, "type": "boolean", "javaType": "java.lang.Boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether to trim the value to remove leading and trailing whitespaces and line breaks" },
+    "id": { "index": 7, "kind": "attribute", "displayName": "Id", "required": false, "type": "string", "javaType": "java.lang.String", "deprecated": false, "autowired": false, "secret": false, "description": "Sets the id of this node" }
   }
 }
diff --git a/components-starter/camel-bean-starter/src/main/docs/bean.json b/components-starter/camel-bean-starter/src/main/docs/bean.json
index 3bf79f6f899..31fa8352bb3 100644
--- a/components-starter/camel-bean-starter/src/main/docs/bean.json
+++ b/components-starter/camel-bean-starter/src/main/docs/bean.json
@@ -121,6 +121,13 @@
       "description": "Whether to trim the value to remove leading and trailing whitespaces and line breaks",
       "sourceType": "org.apache.camel.language.bean.springboot.BeanLanguageConfiguration",
       "defaultValue": true
+    },
+    {
+      "name": "camel.language.bean.validate",
+      "type": "java.lang.Boolean",
+      "description": "Whether to validate the bean has the configured method.",
+      "sourceType": "org.apache.camel.language.bean.springboot.BeanLanguageConfiguration",
+      "defaultValue": true
     }
   ],
   "hints": []
diff --git a/components-starter/camel-bean-starter/src/main/java/org/apache/camel/language/bean/springboot/BeanLanguageConfiguration.java b/components-starter/camel-bean-starter/src/main/java/org/apache/camel/language/bean/springboot/BeanLanguageConfiguration.java
index 18103f977a9..5923a13ba66 100644
--- a/components-starter/camel-bean-starter/src/main/java/org/apache/camel/language/bean/springboot/BeanLanguageConfiguration.java
+++ b/components-starter/camel-bean-starter/src/main/java/org/apache/camel/language/bean/springboot/BeanLanguageConfiguration.java
@@ -51,6 +51,10 @@ public class BeanLanguageConfiguration
      * implementation.
      */
     private String scope = "Singleton";
+    /**
+     * Whether to validate the bean has the configured method.
+     */
+    private Boolean validate = true;
     /**
      * Whether to trim the value to remove leading and trailing whitespaces and
      * line breaks
@@ -65,6 +69,14 @@ public class BeanLanguageConfiguration
         this.scope = scope;
     }
 
+    public Boolean getValidate() {
+        return validate;
+    }
+
+    public void setValidate(Boolean validate) {
+        this.validate = validate;
+    }
+
     public Boolean getTrim() {
         return trim;
     }
diff --git a/tooling/camel-spring-boot-dependencies/pom.xml b/tooling/camel-spring-boot-dependencies/pom.xml
index 3d10bcd548d..bb689359809 100644
--- a/tooling/camel-spring-boot-dependencies/pom.xml
+++ b/tooling/camel-spring-boot-dependencies/pom.xml
@@ -220,7 +220,7 @@
       <dependency>
         <groupId>org.apache.avro</groupId>
         <artifactId>avro</artifactId>
-        <version>1.11.3</version>
+        <version>1.11.0</version>
       </dependency>
       <dependency>
         <groupId>org.apache.avro</groupId>