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/09 13:56:48 UTC

(camel-spring-boot) branch main updated: CAMEL-20531: Include dev-consoles into camel-catalog

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 d1652516af5 CAMEL-20531: Include dev-consoles into camel-catalog
d1652516af5 is described below

commit d1652516af527feb71b85f4ee0a0a38f1623efa7
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sat Mar 9 13:04:22 2024 +0100

    CAMEL-20531: Include dev-consoles into camel-catalog
---
 .../camel/springboot/catalog/SpringBootRuntimeProvider.java  | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java b/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java
index 323455170ab..a1a493e736e 100644
--- a/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java
+++ b/catalog/camel-catalog-provider-springboot/src/main/java/org/apache/camel/springboot/catalog/SpringBootRuntimeProvider.java
@@ -35,11 +35,13 @@ public class SpringBootRuntimeProvider implements RuntimeProvider {
     private static final String DATAFORMAT_DIR = "org/apache/camel/springboot/catalog/dataformats";
     private static final String LANGUAGE_DIR = "org/apache/camel/springboot/catalog/languages";
     private static final String TRANSFORMER_DIR = "org/apache/camel/springboot/catalog/transformers";
+    private static final String CONSOLE_DIR = "org/apache/camel/springboot/catalog/dev-consoles";
     private static final String OTHER_DIR = "org/apache/camel/springboot/catalog/others";
     private static final String COMPONENTS_CATALOG = "org/apache/camel/springboot/catalog/components.properties";
     private static final String DATA_FORMATS_CATALOG = "org/apache/camel/springboot/catalog/dataformats.properties";
     private static final String LANGUAGE_CATALOG = "org/apache/camel/springboot/catalog/languages.properties";
     private static final String TRANSFORMER_CATALOG = "org/apache/camel/springboot/catalog/transformers.properties";
+    private static final String CONSOLES_CATALOG = "org/apache/camel/springboot/catalog/dev-consoles.properties";
     private static final String OTHER_CATALOG = "org/apache/camel/springboot/catalog/others.properties";
 
     private CamelCatalog camelCatalog;
@@ -89,6 +91,11 @@ public class SpringBootRuntimeProvider implements RuntimeProvider {
         return TRANSFORMER_DIR;
     }
 
+    @Override
+    public String getDevConsoleJSonSchemaDirectory() {
+        return CONSOLE_DIR;
+    }
+
     @Override
     public String getOtherJSonSchemaDirectory() {
         return OTHER_DIR;
@@ -114,6 +121,11 @@ public class SpringBootRuntimeProvider implements RuntimeProvider {
         return findNames(TRANSFORMER_CATALOG);
     }
 
+    @Override
+    public List<String> findDevConsoleNames() {
+        return findNames(CONSOLES_CATALOG);
+    }
+
     @Override
     public List<String> findOtherNames() {
         return findNames(OTHER_CATALOG);