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 2024/05/02 12:15:02 UTC

(camel) 07/09: CAMEL-20514: camel-model - Add support for bean constructors for beans in route templates or kamelets

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

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

commit bf29dacd70d6389c17de5ba340828b586d0a73bd
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 2 13:23:06 2024 +0200

    CAMEL-20514: camel-model - Add support for bean constructors for beans in route templates or kamelets
---
 .../src/main/java/org/apache/camel/model/BeanModelHelper.java      | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/BeanModelHelper.java b/core/camel-core-model/src/main/java/org/apache/camel/model/BeanModelHelper.java
index 018e8852ed6..afdaddc6c9e 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/BeanModelHelper.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/BeanModelHelper.java
@@ -49,9 +49,9 @@ public final class BeanModelHelper {
     /**
      * Creates a new bean.
      *
-     * @param def       the bean model
-     * @param context   the camel context
-     * @return  the created bean instance
+     * @param  def       the bean model
+     * @param  context   the camel context
+     * @return           the created bean instance
      * @throws Exception is thrown if error creating the bean
      */
     public static Object newInstance(RegistryBeanDefinition def, CamelContext context) throws Exception {
@@ -144,6 +144,7 @@ public final class BeanModelHelper {
         return target;
     }
 
+    // TODO: init and destroy method
 
     /**
      * Creates and binds the bean to the route-template repository (local beans for kamelets).