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


The following commit(s) were added to refs/heads/main by this push:
     new 4b89046d701 Fixup catalog: make catalog more type safe (#13665)
4b89046d701 is described below

commit 4b89046d701e3f4c53b0b053353fecaa759ac47b
Author: Peter Palaga <[email protected]>
AuthorDate: Sat Mar 30 07:07:16 2024 +0100

    Fixup catalog: make catalog more type safe (#13665)
---
 .../src/main/java/org/apache/camel/catalog/CamelCatalog.java        | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git 
a/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java
 
b/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java
index 6406ba99f0c..3ba6ee5263a 100644
--- 
a/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java
+++ 
b/catalog/camel-catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java
@@ -250,6 +250,8 @@ public interface CamelCatalog {
                 return findModelNames();
             case bean:
                 return findBeansNames();
+            case model:
+                return findModelNames();
             default:
                 throw new IllegalArgumentException("Unexpected kind " + kind);
         }
@@ -628,6 +630,10 @@ public interface CamelCatalog {
                 return otherModel(name);
             case eip:
                 return eipModel(name);
+            case bean:
+                return pojoBeanModel(name);
+            case model:
+                return eipModel(name);
             default:
                 throw new IllegalArgumentException("Unexpected kind " + kind);
         }

Reply via email to