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/03/30 06:07:21 UTC
(camel) branch main updated: Fixup catalog: make catalog more type safe (#13665)
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 <pp...@redhat.com>
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);
}